diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-07 22:09:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-07 22:09:11 +0300 |
commit | b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (patch) | |
tree | ee27a5a1ace7e5dbc588466dc623013e4d5cea99 /src/gui/textpopup.cpp | |
parent | 7d3059516fc25134d0d29b497e546f2846162399 (diff) | |
download | plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.gz plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.bz2 plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.xz plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.zip |
Improve constructors in some classes.
Diffstat (limited to 'src/gui/textpopup.cpp')
-rw-r--r-- | src/gui/textpopup.cpp | 10 |
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); |