summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 11:28:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commit2df5b93608c98297e75b2bec8cd494e6bba5a23a (patch)
treed72bef1453ee63dd74dbc856cacac9d4dc85e909 /src/gui/popups
parente964cbb2e00121e9d4fea4a76a09e9af960ca56e (diff)
downloadplus-2df5b93608c98297e75b2bec8cd494e6bba5a23a.tar.gz
plus-2df5b93608c98297e75b2bec8cd494e6bba5a23a.tar.bz2
plus-2df5b93608c98297e75b2bec8cd494e6bba5a23a.tar.xz
plus-2df5b93608c98297e75b2bec8cd494e6bba5a23a.zip
move virtual member calls from spellpopup constuctor into postInit.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/spellpopup.cpp3
-rw-r--r--src/gui/popups/spellpopup.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/popups/spellpopup.cpp b/src/gui/popups/spellpopup.cpp
index 5db8ceafb..b522f0d0a 100644
--- a/src/gui/popups/spellpopup.cpp
+++ b/src/gui/popups/spellpopup.cpp
@@ -39,7 +39,10 @@ SpellPopup::SpellPopup():
getThemeColor(Theme::POPUP_OUTLINE));
mItemComment->setForegroundColorAll(getThemeColor(Theme::POPUP),
getThemeColor(Theme::POPUP_OUTLINE));
+}
+void SpellPopup::postInit()
+{
add(mItemName);
add(mItemComment);
diff --git a/src/gui/popups/spellpopup.h b/src/gui/popups/spellpopup.h
index abd542461..9c059c954 100644
--- a/src/gui/popups/spellpopup.h
+++ b/src/gui/popups/spellpopup.h
@@ -48,6 +48,8 @@ class SpellPopup final : public Popup
*/
~SpellPopup();
+ void postInit() override;
+
/**
* Sets the info to be displayed given a particular item.
*/