summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 19:32:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 19:32:33 +0300
commitd6b5d6dc786ea93c146011169d3fae04f3306156 (patch)
tree5b7d23f83a1778d5680d635fedc97579545d1119 /src/gui
parenta684227b26e1e4856e67fc6116b0e09cbffac1f4 (diff)
downloadmanaplus-d6b5d6dc786ea93c146011169d3fae04f3306156.tar.gz
manaplus-d6b5d6dc786ea93c146011169d3fae04f3306156.tar.bz2
manaplus-d6b5d6dc786ea93c146011169d3fae04f3306156.tar.xz
manaplus-d6b5d6dc786ea93c146011169d3fae04f3306156.zip
Use CREATEWIDGET macro in chatwindow.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 18c323339..111ce4642 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -50,6 +50,7 @@
#include "gui/widgets/button.h"
#include "gui/widgets/chatinput.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/dropdown.h"
#include "gui/widgets/itemlinkhandler.h"
#include "gui/widgets/scrollarea.h"
@@ -88,7 +89,7 @@ ChatWindow::ChatWindow() :
KeyListener(),
AttributeListener(),
mItemLinkHandler(new ItemLinkHandler),
- mChatTabs(new TabbedArea(this)),
+ mChatTabs(CREATEWIDGETR(TabbedArea, this)),
mChatInput(new ChatInput(this)),
mRainbowColor(0),
mWhispers(),
@@ -116,8 +117,6 @@ ChatWindow::ChatWindow() :
mShowAllLang(serverConfig.getValue("showAllLang", 0)),
mTmpVisible(false)
{
- mChatTabs->postInit();
-
setWindowName("Chat");
if (setupWindow)