From 89fca0c8032141a0dfdfc2f27dd5ca5ac607d747 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 18:21:53 +0300 Subject: Use CREATEWIDGET macro in dropdown. --- src/gui/widgets/dropdown.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index d637b7194..13128ad9f 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -31,6 +31,7 @@ #include "gui/models/extendedlistmodel.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/popuplist.h" #include "resources/imagerect.h" @@ -61,7 +62,7 @@ DropDown::DropDown(const Widget2 *const widget, MouseListener(), FocusListener(), SelectionListener(), - mPopup(new PopupList(this, listModel, extended, modal)), + mPopup(CREATEWIDGETR(PopupList, this, listModel, extended, modal)), mShadowColor(getThemeColor(ThemeColorId::DROPDOWN_SHADOW)), mHighlightColor(getThemeColor(ThemeColorId::HIGHLIGHT)), mPadding(1), @@ -75,7 +76,6 @@ DropDown::DropDown(const Widget2 *const widget, mIsDragged(false) { mAllowLogic = false; - mPopup->postInit(); mFrameSize = 2; mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE); -- cgit v1.2.3-70-g09d2