summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:21:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:21:53 +0300
commit89fca0c8032141a0dfdfc2f27dd5ca5ac607d747 (patch)
tree85890ac1ee27259fde4bf8f55c923f594dc2467e /src
parentaf0a7115ed97f08d1bf15aa1f703cfd0cc9da973 (diff)
downloadmv-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.tar.gz
mv-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.tar.bz2
mv-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.tar.xz
mv-89fca0c8032141a0dfdfc2f27dd5ca5ac607d747.zip
Use CREATEWIDGET macro in dropdown.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/dropdown.cpp4
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);