From 176f44f8f0a1d56018cefd83b94726be9942b543 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 20:09:54 +0300 Subject: Use CREATEWIDGET macro in buydialog. --- src/gui/windows/buydialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows') 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); -- cgit v1.2.3-70-g09d2