summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 12:50:59 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commite4d34f9e3f5b2068be1a8137c75a571e9da42cda (patch)
tree97d0e13dd2f163e9ce91576b29eec8563899097c /src/gui/popups
parentecc414fed44c8b0ee63c0acf188a109e3867a815 (diff)
downloadmanaverse-e4d34f9e3f5b2068be1a8137c75a571e9da42cda.tar.gz
manaverse-e4d34f9e3f5b2068be1a8137c75a571e9da42cda.tar.bz2
manaverse-e4d34f9e3f5b2068be1a8137c75a571e9da42cda.tar.xz
manaverse-e4d34f9e3f5b2068be1a8137c75a571e9da42cda.zip
move virtual member calls from textpopup constructor into postInit.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/textpopup.cpp4
-rw-r--r--src/gui/popups/textpopup.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/popups/textpopup.cpp b/src/gui/popups/textpopup.cpp
index 2b89e388b..73f5fbad0 100644
--- a/src/gui/popups/textpopup.cpp
+++ b/src/gui/popups/textpopup.cpp
@@ -33,6 +33,10 @@ TextPopup::TextPopup():
Popup("TextPopup", "textpopup.xml"),
mText()
{
+}
+
+void TextPopup::postInit()
+{
const int fontHeight = getFont()->getHeight();
int y = 0;
for (int f = 0; f < TEXTPOPUPCOUNT; f ++)
diff --git a/src/gui/popups/textpopup.h b/src/gui/popups/textpopup.h
index b165c2f25..d57b17faf 100644
--- a/src/gui/popups/textpopup.h
+++ b/src/gui/popups/textpopup.h
@@ -48,6 +48,8 @@ class TextPopup final : public Popup
*/
~TextPopup();
+ void postInit() override;
+
/**
* Sets the text to be displayed.
*/