summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 20:09:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 20:09:54 +0300
commit176f44f8f0a1d56018cefd83b94726be9942b543 (patch)
tree85b3139f43548f015e95fcb04a2ffe0f7c09ed09 /src
parentccf9c1d17bef7457bb7842e42c7a70a539454d03 (diff)
downloadplus-176f44f8f0a1d56018cefd83b94726be9942b543.tar.gz
plus-176f44f8f0a1d56018cefd83b94726be9942b543.tar.bz2
plus-176f44f8f0a1d56018cefd83b94726be9942b543.tar.xz
plus-176f44f8f0a1d56018cefd83b94726be9942b543.zip
Use CREATEWIDGET macro in buydialog.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/buydialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index a77eed240..3b3657272 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -36,6 +36,7 @@
#include "gui/widgets/button.h"
#include "gui/widgets/containerplacer.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/dropdown.h"
#include "gui/widgets/inttextfield.h"
#include "gui/widgets/label.h"
@@ -240,8 +241,7 @@ void BuyDialog::init()
mShopItems = new ShopItems;
- mShopItemList = new ShopListBox(this, mShopItems, mShopItems);
- mShopItemList->postInit();
+ CREATEWIDGETV(mShopItemList, ShopListBox, this, mShopItems, mShopItems);
mScrollArea = new ScrollArea(this, mShopItemList,
getOptionBool("showbackground"), "buy_background.xml");
mScrollArea->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);