summaryrefslogtreecommitdiff
path: root/src/gui/windows/shortcutwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:58:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:58:07 +0300
commit5168e8d602d3a25332e1bbde321460cdd8d82c89 (patch)
treea2fabb8e749872c8539d39892f16f3690c950a62 /src/gui/windows/shortcutwindow.cpp
parent324dac4ac7d01028b8faa5a1b449ce8da363a390 (diff)
downloadmanaverse-5168e8d602d3a25332e1bbde321460cdd8d82c89.tar.gz
manaverse-5168e8d602d3a25332e1bbde321460cdd8d82c89.tar.bz2
manaverse-5168e8d602d3a25332e1bbde321460cdd8d82c89.tar.xz
manaverse-5168e8d602d3a25332e1bbde321460cdd8d82c89.zip
Use CREATEWIDGET macro in shortcutwindow.
Diffstat (limited to 'src/gui/windows/shortcutwindow.cpp')
-rw-r--r--src/gui/windows/shortcutwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/shortcutwindow.cpp b/src/gui/windows/shortcutwindow.cpp
index baf8b68d7..87c539089 100644
--- a/src/gui/windows/shortcutwindow.cpp
+++ b/src/gui/windows/shortcutwindow.cpp
@@ -26,6 +26,7 @@
#include "gui/widgets/tabbedarea.h"
#include "gui/widgets/button.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/layouttype.h"
#include "gui/widgets/scrollarea.h"
@@ -108,11 +109,10 @@ ShortcutWindow::ShortcutWindow(const std::string &restrict title,
Window("Window", Modal_false, nullptr, skinFile),
mItems(nullptr),
mScrollArea(nullptr),
- mTabs(new TabbedArea(this)),
+ mTabs(CREATEWIDGETR(TabbedArea, this)),
mPages(),
mButtonIndex(0)
{
- mTabs->postInit();
setWindowName(title);
setTitleBarHeight(getPadding() + getTitlePadding());
setShowTitle(false);