diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:27:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:27:25 +0300 |
commit | 6afa5656fd99eee1fb288267fecbf704e31d293b (patch) | |
tree | 089e6cda040d6c6df63d662615b5776310299f84 /src/gui/windows/emotewindow.cpp | |
parent | d09e19191c7395893adbf5feaa10fa8f0839cd1d (diff) | |
download | manaverse-6afa5656fd99eee1fb288267fecbf704e31d293b.tar.gz manaverse-6afa5656fd99eee1fb288267fecbf704e31d293b.tar.bz2 manaverse-6afa5656fd99eee1fb288267fecbf704e31d293b.tar.xz manaverse-6afa5656fd99eee1fb288267fecbf704e31d293b.zip |
Use CREATEWIDGET macro in emotewindow.
Diffstat (limited to 'src/gui/windows/emotewindow.cpp')
-rw-r--r-- | src/gui/windows/emotewindow.cpp | 10 |
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); |