summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-28 23:51:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-28 23:51:38 +0300
commitb14dd921c74c1543d1cd75602d6666f32df518ca (patch)
treea03bb2782ccc3a623b20445367646e43747f7fd1
parent9651fe916f2e0e91778fd18bfacbe401f99a2de6 (diff)
downloadmanaverse-b14dd921c74c1543d1cd75602d6666f32df518ca.tar.gz
manaverse-b14dd921c74c1543d1cd75602d6666f32df518ca.tar.bz2
manaverse-b14dd921c74c1543d1cd75602d6666f32df518ca.tar.xz
manaverse-b14dd921c74c1543d1cd75602d6666f32df518ca.zip
move bools in checkbox.
-rw-r--r--src/gui/widgets/checkbox.cpp4
-rw-r--r--src/gui/widgets/checkbox.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp
index 552d98c72..d46ce28bd 100644
--- a/src/gui/widgets/checkbox.cpp
+++ b/src/gui/widgets/checkbox.cpp
@@ -44,12 +44,12 @@ CheckBox::CheckBox(const Widget2 *const widget,
const std::string &eventId) :
gcn::CheckBox(caption, selected),
Widget2(widget),
- mHasMouse(false),
+ mForegroundColor(getThemeColor(Theme::CHECKBOX_OUTLINE)),
mPadding(0),
mImagePadding(0),
mImageSize(9),
mSpacing(2),
- mForegroundColor(getThemeColor(Theme::CHECKBOX_OUTLINE))
+ mHasMouse(false)
{
if (instances == 0)
{
diff --git a/src/gui/widgets/checkbox.h b/src/gui/widgets/checkbox.h
index a18079bed..408a52031 100644
--- a/src/gui/widgets/checkbox.h
+++ b/src/gui/widgets/checkbox.h
@@ -86,12 +86,12 @@ class CheckBox final : public gcn::CheckBox,
void adjustSize();
private:
- bool mHasMouse;
+ gcn::Color mForegroundColor;
int mPadding;
int mImagePadding;
int mImageSize;
int mSpacing;
- gcn::Color mForegroundColor;
+ bool mHasMouse;
static int instances;
static Skin *mSkin;