diff options
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/statuspopup.cpp | 8 | ||||
-rw-r--r-- | src/gui/popups/statuspopup.h | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/popups/statuspopup.cpp b/src/gui/popups/statuspopup.cpp index fb2b161c2..4b0361e2c 100644 --- a/src/gui/popups/statuspopup.cpp +++ b/src/gui/popups/statuspopup.cpp @@ -50,12 +50,14 @@ StatusPopup::StatusPopup() : Popup("StatusPopup", "statuspopup.xml") { - const int fontHeight = getFont()->getHeight(); - for (int f = 0; f < STATUSPOPUP_NUM_LABELS; f ++) mLabels[f] = new Label(this); - int y = 0; +} +void StatusPopup::postInit() +{ + const int fontHeight = getFont()->getHeight(); + int y = 0; addLabel(0); addLabel(1); addLabel(2); diff --git a/src/gui/popups/statuspopup.h b/src/gui/popups/statuspopup.h index f7964741b..b8fb05f0e 100644 --- a/src/gui/popups/statuspopup.h +++ b/src/gui/popups/statuspopup.h @@ -45,6 +45,8 @@ class StatusPopup final : public Popup A_DELETE_COPY(StatusPopup) + void postInit() override; + /** * Destructor. Cleans up the item popup on deletion. */ |