diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:38:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:38:28 +0300 |
commit | abde172999fdd7bf9c4cf4ce60666824dabcb9f0 (patch) | |
tree | 0c058e652ff9c2efb4afe6e843cabadb9c2b5c4f /src/gui | |
parent | 16bd57f5bff8365f85b4d22e693ada622f70717d (diff) | |
download | manaplus-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.tar.gz manaplus-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.tar.bz2 manaplus-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.tar.xz manaplus-abde172999fdd7bf9c4cf4ce60666824dabcb9f0.zip |
Use CREATEWIDGET macro in ministatuswindow.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 5 |
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) |