diff options
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 24 | ||||
-rw-r--r-- | src/gui/widgets/setupitem.h | 12 |
2 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 8be7dd520..b681824c8 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -56,13 +56,13 @@ SetupItem::SetupItem(const std::string &text, const std::string &description, mKeyName(keyName), mParent(parent), mEventName(eventName), - mMainConfig(mainConfig), - mUseDefault(false), mValue(), mDefault(), mWidget(nullptr), mTempWidgets(), - mValueType(VBOOL) + mValueType(VBOOL), + mMainConfig(mainConfig), + mUseDefault(false) { } @@ -77,13 +77,13 @@ SetupItem::SetupItem(const std::string &text, const std::string &description, mKeyName(keyName), mParent(parent), mEventName(eventName), - mMainConfig(mainConfig), - mUseDefault(true), mValue(), mDefault(def), mWidget(nullptr), mTempWidgets(), - mValueType(VBOOL) + mValueType(VBOOL), + mMainConfig(mainConfig), + mUseDefault(true) { } @@ -377,9 +377,9 @@ SetupItemIntTextField::SetupItemIntTextField(const std::string &text, mLabel(nullptr), mTextField(nullptr), mButton(nullptr), + mEditDialog(nullptr), mMin(min), - mMax(max), - mEditDialog(nullptr) + mMax(max) { mValueType = VSTR; createControls(); @@ -398,9 +398,9 @@ SetupItemIntTextField::SetupItemIntTextField(const std::string &text, mLabel(nullptr), mTextField(nullptr), mButton(nullptr), + mEditDialog(nullptr), mMin(min), - mMax(max), - mEditDialog(nullptr) + mMax(max) { mValueType = VSTR; createControls(); @@ -763,8 +763,8 @@ SetupItemSlider2::SetupItemSlider2(const std::string &text, mValues(values), mMin(min), mMax(max), - mInvert(false), mInvertValue(0), + mInvert(false), mOnTheFly(onTheFly), mDoNotAlign(doNotAlign) { @@ -790,8 +790,8 @@ SetupItemSlider2::SetupItemSlider2(const std::string &text, mValues(values), mMin(min), mMax(max), - mInvert(false), mInvertValue(0), + mInvert(false), mOnTheFly(onTheFly), mDoNotAlign(doNotAlign) { diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index b3c0554d3..97c6006ce 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -120,10 +120,6 @@ class SetupItem : public gcn::ActionListener, std::string mEventName; - bool mMainConfig; - - bool mUseDefault; - std::string mValue; std::string mDefault; @@ -133,6 +129,10 @@ class SetupItem : public gcn::ActionListener, std::list<gcn::Widget*> mTempWidgets; int mValueType; + + bool mMainConfig; + + bool mUseDefault; }; class SetupItemCheckBox final : public SetupItem @@ -246,9 +246,9 @@ class SetupItemIntTextField final : public SetupItem Label *mLabel; IntTextField *mTextField; Button *mButton; + EditDialog *mEditDialog; int mMin; int mMax; - EditDialog *mEditDialog; }; class SetupItemLabel final : public SetupItem @@ -422,8 +422,8 @@ class SetupItemSlider2 final : public SetupItem SetupItemNames *mValues; int mMin; int mMax; - bool mInvert; int mInvertValue; + bool mInvert; bool mOnTheFly; bool mDoNotAlign; }; |