diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 11:56:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:22 +0300 |
commit | 4179da0ea3495768d00f2415089cab137bc1ec5e (patch) | |
tree | 7427bb1c4daece98fd7eb9c218938485991b549d /src/gui/popups/statuspopup.cpp | |
parent | 6e0cdf4f00b7d5fcfd6eaeca617c59fc22ce2034 (diff) | |
download | mv-4179da0ea3495768d00f2415089cab137bc1ec5e.tar.gz mv-4179da0ea3495768d00f2415089cab137bc1ec5e.tar.bz2 mv-4179da0ea3495768d00f2415089cab137bc1ec5e.tar.xz mv-4179da0ea3495768d00f2415089cab137bc1ec5e.zip |
move virtual member calls from statuspopup constuctor into postInit.
Diffstat (limited to 'src/gui/popups/statuspopup.cpp')
-rw-r--r-- | src/gui/popups/statuspopup.cpp | 8 |
1 files changed, 5 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); |