summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 19:00:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 19:00:26 +0300
commit2d6c31851b610561f3376d49b2327919c5edf985 (patch)
tree5a3f279493736b0d0b96506f87054151d920ec9e
parent5168e8d602d3a25332e1bbde321460cdd8d82c89 (diff)
downloadplus-2d6c31851b610561f3376d49b2327919c5edf985.tar.gz
plus-2d6c31851b610561f3376d49b2327919c5edf985.tar.bz2
plus-2d6c31851b610561f3376d49b2327919c5edf985.tar.xz
plus-2d6c31851b610561f3376d49b2327919c5edf985.zip
Use CREATEWIDGET macro in debugwindow.
-rw-r--r--src/gui/windows/debugwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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);