summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:38:28 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:38:28 +0300
commitabde172999fdd7bf9c4cf4ce60666824dabcb9f0 (patch)
tree0c058e652ff9c2efb4afe6e843cabadb9c2b5c4f
parent16bd57f5bff8365f85b4d22e693ada622f70717d (diff)
downloadmv-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.tar.gz
mv-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.tar.bz2
mv-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.tar.xz
mv-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.zip
Use CREATEWIDGET macro in ministatuswindow.
-rw-r--r--src/gui/windows/ministatuswindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index 65bef8e5c..c6341f972 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -38,6 +38,7 @@
#include "gui/windows/statuswindow.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/progressbar.h"
#include "net/playerhandler.h"
@@ -111,14 +112,12 @@ MiniStatusWindow::MiniStatusWindow() :
"statusprogressbar.xml", "statusprogressbar_fill.xml",
// TRANSLATORS: status bar name
"status bar", _("status bar"))),
- mStatusPopup(new StatusPopup),
+ mStatusPopup(CREATEWIDGETR0(StatusPopup)),
mSpacing(mSkin ? mSkin->getOption("spacing", 3) : 3),
mIconPadding(mSkin ? mSkin->getOption("iconPadding", 3) : 3),
mIconSpacing(mSkin ? mSkin->getOption("iconSpacing", 2) : 2),
mMaxX(0)
{
- mStatusPopup->postInit();
-
StatusWindow::updateHPBar(mHpBar);
if (gameHandler->canUseMagicBar() && statusWindow)