summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:40:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:40:52 +0300
commit302cfec640515a49d3a88c301be74ee6fd885312 (patch)
treeb361503cea4ad4d752e4d960ae478ab4f0844efa /src/gui
parentabde172999fdd7bf9c4cf4ce60666824dabcb9f0 (diff)
downloadplus-302cfec640515a49d3a88c301be74ee6fd885312.tar.gz
plus-302cfec640515a49d3a88c301be74ee6fd885312.tar.bz2
plus-302cfec640515a49d3a88c301be74ee6fd885312.tar.xz
plus-302cfec640515a49d3a88c301be74ee6fd885312.zip
Use CREATEWIDGET macro in npcdialog.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/npcdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 62ebd28bf..10eb3dc8a 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -42,6 +42,7 @@
#include "gui/widgets/browserbox.h"
#include "gui/widgets/button.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/inttextfield.h"
#include "gui/widgets/itemcontainer.h"
#include "gui/widgets/itemlinkhandler.h"
@@ -94,7 +95,8 @@ NpcDialog::NpcDialog(const BeingId npcId) :
getOptionBool("showtextbackground"), "npc_textbackground.xml")),
mText(),
mNewText(),
- mItemList(new ExtendedListBox(this, this, "extendedlistbox.xml")),
+ mItemList(CREATEWIDGETR(ExtendedListBox,
+ this, this, "extendedlistbox.xml")),
mListScrollArea(new ScrollArea(this, mItemList,
getOptionBool("showlistbackground"), "npc_listbackground.xml")),
mItems(),
@@ -130,7 +132,6 @@ NpcDialog::NpcDialog(const BeingId npcId) :
mShowAvatar(false),
mLogInteraction(config.getBoolValue("logNpcInGui"))
{
- mItemList->postInit();
// Basic Window Setup
setWindowName("NpcText");
setResizable(true);