From 96eeaca6177108f93dcaab0520b38f23aea77cd8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 19:17:51 +0300 Subject: Use CREATEWIDGET macro in questswindow. --- src/gui/windows/questswindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/questswindow.cpp') diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index 608d84954..144f9b3d0 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -37,6 +37,7 @@ #include "gui/widgets/browserbox.h" #include "gui/widgets/button.h" #include "gui/widgets/containerplacer.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/layout.h" #include "gui/widgets/layouttype.h" #include "gui/widgets/extendedlistbox.h" @@ -65,8 +66,8 @@ QuestsWindow::QuestsWindow() : Window(_("Quests"), Modal_false, nullptr, "quests.xml"), ActionListener(), mQuestsModel(new QuestsModel), - mQuestsListBox(new ExtendedListBox(this, - mQuestsModel, "extendedlistbox.xml")), + mQuestsListBox(CREATEWIDGETR(ExtendedListBox, + this, mQuestsModel, "extendedlistbox.xml")), mQuestScrollArea(new ScrollArea(this, mQuestsListBox, getOptionBool("showlistbackground"), "quests_list_background.xml")), mItemLinkHandler(new ItemLinkHandler), @@ -87,8 +88,6 @@ QuestsWindow::QuestsWindow() : mCompleteQuestEffectId(paths.getIntValue("completeQuestEffectId")), mMap(nullptr) { - mQuestsListBox->postInit(); - setWindowName("Quests"); setResizable(true); setCloseButton(true); -- cgit v1.2.3-70-g09d2