summaryrefslogtreecommitdiff
path: root/src/gui/textpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textpopup.cpp')
-rw-r--r--src/gui/textpopup.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/textpopup.cpp b/src/gui/textpopup.cpp
index c65c34804..219b25633 100644
--- a/src/gui/textpopup.cpp
+++ b/src/gui/textpopup.cpp
@@ -38,17 +38,15 @@
#include "debug.h"
TextPopup::TextPopup():
- Popup("TextPopup", "textpopup.xml")
+ Popup("TextPopup", "textpopup.xml"),
+ mText1(new Label),
+ mText2(new Label),
+ mText3(new Label)
{
const int fontHeight = getFont()->getHeight();
- mText1 = new Label;
mText1->setPosition(getPadding(), getPadding());
-
- mText2 = new Label;
mText2->setPosition(getPadding(), fontHeight + 2 * getPadding());
-
- mText3 = new Label;
mText3->setPosition(getPadding(), (2 * fontHeight) + 2 * getPadding());
add(mText1);