summaryrefslogtreecommitdiff
path: root/src/gui/textpopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-07 22:09:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-07 22:09:11 +0300
commitb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (patch)
treeee27a5a1ace7e5dbc588466dc623013e4d5cea99 /src/gui/textpopup.cpp
parent7d3059516fc25134d0d29b497e546f2846162399 (diff)
downloadmv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.gz
mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.bz2
mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.xz
mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.zip
Improve constructors in some classes.
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);