summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:19:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:19:36 +0300
commitaf0a7115ed97f08d1bf15aa1f703cfd0cc9da973 (patch)
treeb2f253870d6bf17e1fd12d8b0be68213a5a755df /src/gui
parent7cb3d0c5c9558f5ab32c913ede673fac5233dc76 (diff)
downloadplus-af0a7115ed97f08d1bf15aa1f703cfd0cc9da973.tar.gz
plus-af0a7115ed97f08d1bf15aa1f703cfd0cc9da973.tar.bz2
plus-af0a7115ed97f08d1bf15aa1f703cfd0cc9da973.tar.xz
plus-af0a7115ed97f08d1bf15aa1f703cfd0cc9da973.zip
Use CREATEWIDGET macro in selldialog.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/selldialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp
index 3864fd46c..6498c25b6 100644
--- a/src/gui/widgets/selldialog.cpp
+++ b/src/gui/widgets/selldialog.cpp
@@ -31,6 +31,7 @@
#include "gui/widgets/button.h"
#include "gui/widgets/containerplacer.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/label.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/layouttype.h"
@@ -85,8 +86,10 @@ void SellDialog::postInit()
// Create a ShopItems instance, that is aware of duplicate entries.
mShopItems = new ShopItems(true);
- mShopItemList = new ShopListBox(this, mShopItems, mShopItems);
- mShopItemList->postInit();
+ mShopItemList = CREATEWIDGETR(ShopListBox,
+ this,
+ mShopItems,
+ mShopItems);
mShopItemList->setProtectItems(true);
mScrollArea = new ScrollArea(this, mShopItemList,
getOptionBool("showbackground"), "sell_background.xml");