From d6b5d6dc786ea93c146011169d3fae04f3306156 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 19:32:33 +0300 Subject: Use CREATEWIDGET macro in chatwindow. --- src/gui/windows/chatwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') 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) -- cgit v1.2.3-70-g09d2