summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/itempopup.cpp3
-rw-r--r--src/gui/popups/itempopup.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp
index c05073750..72fd3e0bd 100644
--- a/src/gui/popups/itempopup.cpp
+++ b/src/gui/popups/itempopup.cpp
@@ -77,7 +77,10 @@ ItemPopup::ItemPopup() :
mItemWeight->setPosition(0, 3 * fontHeight);
mItemWeight->setForegroundColorAll(getThemeColor(Theme::POPUP),
getThemeColor(Theme::POPUP_OUTLINE));
+}
+void ItemPopup::postInit()
+{
add(mItemName);
add(mItemDesc);
add(mItemEffect);
diff --git a/src/gui/popups/itempopup.h b/src/gui/popups/itempopup.h
index 5c06cbf5a..4902a97b0 100644
--- a/src/gui/popups/itempopup.h
+++ b/src/gui/popups/itempopup.h
@@ -50,6 +50,8 @@ class ItemPopup final : public Popup
*/
~ItemPopup();
+ void postInit() override;
+
/**
* Sets the info to be displayed given a particular item.
*/