summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:27:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:27:25 +0300
commit6afa5656fd99eee1fb288267fecbf704e31d293b (patch)
tree089e6cda040d6c6df63d662615b5776310299f84 /src/gui
parentd09e19191c7395893adbf5feaa10fa8f0839cd1d (diff)
downloadmanaplus-6afa5656fd99eee1fb288267fecbf704e31d293b.tar.gz
manaplus-6afa5656fd99eee1fb288267fecbf704e31d293b.tar.bz2
manaplus-6afa5656fd99eee1fb288267fecbf704e31d293b.tar.xz
manaplus-6afa5656fd99eee1fb288267fecbf704e31d293b.zip
Use CREATEWIDGET macro in emotewindow.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/emotewindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/windows/emotewindow.cpp b/src/gui/windows/emotewindow.cpp
index 1734333e0..3234c1f5f 100644
--- a/src/gui/windows/emotewindow.cpp
+++ b/src/gui/windows/emotewindow.cpp
@@ -26,6 +26,7 @@
#include "gui/windows/setupwindow.h"
#include "gui/widgets/colorpage.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/emotepage.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabbedarea.h"
@@ -52,19 +53,16 @@ static const char *const fontSizeList[] =
EmoteWindow::EmoteWindow() :
// TRANSLATORS: emotes window name
Window(_("Emotes"), Modal_false, nullptr, "emotes.xml"),
- mTabs(new TabbedArea(this)),
+ mTabs(CREATEWIDGETR(TabbedArea, this)),
mEmotePage(new EmotePage(this)),
mColorModel(ColorModel::createDefault(this)),
- mColorPage(new ColorPage(this, mColorModel, "colorpage.xml")),
+ mColorPage(CREATEWIDGETR(ColorPage, this, mColorModel, "colorpage.xml")),
mScrollColorPage(new ScrollArea(this, mColorPage, false, "emotepage.xml")),
mFontModel(new NamesModel),
- mFontPage(new ListBox(this, mFontModel, "")),
+ mFontPage(CREATEWIDGETR(ListBox, this, mFontModel, "")),
mScrollFontPage(new ScrollArea(this, mFontPage, false, "fontpage.xml")),
mImageSet(Theme::getImageSetFromThemeXml("emotetabs.xml", "", 17, 16))
{
- mTabs->postInit();
- mColorPage->postInit();
- mFontPage->postInit();
setShowTitle(false);
setResizable(true);