summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/widgets/dropdown.cpp
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadManaVerse-747dc30f256606e28fd932a9626da7c328114036.tar.gz
ManaVerse-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
ManaVerse-747dc30f256606e28fd932a9626da7c328114036.tar.xz
ManaVerse-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 31a41307c..f05f40b62 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -76,10 +76,12 @@ DropDown::DropDown(const Widget2 *const widget,
mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
mPadding(1),
mImagePadding(2),
+ mSpacing(0),
mDroppedDown(false),
mPushed(false),
mFoldedUpHeight(0),
- mIsDragged(false)
+ mIsDragged(false),
+ mSelectionListeners()
{
mFrameSize = 2;
@@ -156,10 +158,10 @@ DropDown::DropDown(const Widget2 *const widget,
if (mSkin)
{
+ mSpacing = mSkin->getOption("spacing");
mFrameSize = mSkin->getOption("frameSize");
mPadding = mSkin->getPadding();
mImagePadding = mSkin->getOption("imagePadding");
- mSpacing = mSkin->getOption("spacing");
}
adjustHeight();
}