diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:17:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:17:51 +0300 |
commit | 96eeaca6177108f93dcaab0520b38f23aea77cd8 (patch) | |
tree | 426f0cb2dbe0abb0f4233dcb8feb2ae3cafb19a4 /src/gui/windows/questswindow.cpp | |
parent | 0038b6987575b830366a49db354757afb64a8db1 (diff) | |
download | mv-96eeaca6177108f93dcaab0520b38f23aea77cd8.tar.gz mv-96eeaca6177108f93dcaab0520b38f23aea77cd8.tar.bz2 mv-96eeaca6177108f93dcaab0520b38f23aea77cd8.tar.xz mv-96eeaca6177108f93dcaab0520b38f23aea77cd8.zip |
Use CREATEWIDGET macro in questswindow.
Diffstat (limited to 'src/gui/windows/questswindow.cpp')
-rw-r--r-- | src/gui/windows/questswindow.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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); |