diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:09:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:09:54 +0300 |
commit | 176f44f8f0a1d56018cefd83b94726be9942b543 (patch) | |
tree | 85b3139f43548f015e95fcb04a2ffe0f7c09ed09 /src/gui/windows/buydialog.cpp | |
parent | ccf9c1d17bef7457bb7842e42c7a70a539454d03 (diff) | |
download | plus-176f44f8f0a1d56018cefd83b94726be9942b543.tar.gz plus-176f44f8f0a1d56018cefd83b94726be9942b543.tar.bz2 plus-176f44f8f0a1d56018cefd83b94726be9942b543.tar.xz plus-176f44f8f0a1d56018cefd83b94726be9942b543.zip |
Use CREATEWIDGET macro in buydialog.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 4 |
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); |