From 6afa5656fd99eee1fb288267fecbf704e31d293b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 18:27:25 +0300 Subject: Use CREATEWIDGET macro in emotewindow. --- src/gui/windows/emotewindow.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gui/windows/emotewindow.cpp') 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); -- cgit v1.2.3-60-g2f50