diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:58:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:58:07 +0300 |
commit | 5168e8d602d3a25332e1bbde321460cdd8d82c89 (patch) | |
tree | a2fabb8e749872c8539d39892f16f3690c950a62 /src/gui | |
parent | 324dac4ac7d01028b8faa5a1b449ce8da363a390 (diff) | |
download | manaplus-5168e8d602d3a25332e1bbde321460cdd8d82c89.tar.gz manaplus-5168e8d602d3a25332e1bbde321460cdd8d82c89.tar.bz2 manaplus-5168e8d602d3a25332e1bbde321460cdd8d82c89.tar.xz manaplus-5168e8d602d3a25332e1bbde321460cdd8d82c89.zip |
Use CREATEWIDGET macro in shortcutwindow.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/shortcutwindow.cpp | 4 |
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); |