diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:21:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:21:53 +0300 |
commit | 89fca0c8032141a0dfdfc2f27dd5ca5ac607d747 (patch) | |
tree | 85890ac1ee27259fde4bf8f55c923f594dc2467e /src/gui | |
parent | af0a7115ed97f08d1bf15aa1f703cfd0cc9da973 (diff) | |
download | plus-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.tar.gz plus-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.tar.bz2 plus-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.tar.xz plus-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.zip |
Use CREATEWIDGET macro in dropdown.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |