From 2d6c31851b610561f3376d49b2327919c5edf985 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 19:00:26 +0300 Subject: Use CREATEWIDGET macro in debugwindow. --- src/gui/windows/debugwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/debugwindow.cpp b/src/gui/windows/debugwindow.cpp index 185e4adab..ce1bb5e35 100644 --- a/src/gui/windows/debugwindow.cpp +++ b/src/gui/windows/debugwindow.cpp @@ -26,6 +26,7 @@ #include "gui/windows/setupwindow.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/tabbedarea.h" #include "gui/widgets/tabs/debugwindowtabs.h" @@ -40,12 +41,11 @@ DebugWindow *debugWindow = nullptr; DebugWindow::DebugWindow() : // TRANSLATORS: debug window name Window(_("Debug"), Modal_false, nullptr, "debug.xml"), - mTabs(new TabbedArea(this)), + mTabs(CREATEWIDGETR(TabbedArea, this)), mMapWidget(new MapDebugTab(this)), mTargetWidget(new TargetDebugTab(this)), mNetWidget(new NetDebugTab(this)) { - mTabs->postInit(); setWindowName("Debug"); if (setupWindow) setupWindow->registerWindowForReset(this); -- cgit v1.2.3-70-g09d2