diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-01 14:07:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-01 14:07:38 +0300 |
commit | 7afb9df4a8fdecc0d6b93a7dbd7044e0f6a358f3 (patch) | |
tree | 2aa557aac271eb15b1f70bbfb7842e593e90b791 /src/gui/widgets/setupitem.cpp | |
parent | 1b2001d45ea6ee99490d4b1c374b1a03d73bbc86 (diff) | |
download | manaverse-7afb9df4a8fdecc0d6b93a7dbd7044e0f6a358f3.tar.gz manaverse-7afb9df4a8fdecc0d6b93a7dbd7044e0f6a358f3.tar.bz2 manaverse-7afb9df4a8fdecc0d6b93a7dbd7044e0f6a358f3.tar.xz manaverse-7afb9df4a8fdecc0d6b93a7dbd7044e0f6a358f3.zip |
Add strong typed bool enum donotalign.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index be26265c3..2f5b2090c 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -848,7 +848,7 @@ SetupItemSlider2::SetupItemSlider2(const std::string &restrict text, SetupItemNames *restrict const values, const OnTheFly onTheFly, const MainConfig mainConfig, - const bool doNotAlign) : + const DoNotAlign doNotAlign) : SetupItem(text, description, keyName, parent, eventName, mainConfig), mHorizont(nullptr), mLabel(nullptr), @@ -879,7 +879,7 @@ SetupItemSlider2::SetupItemSlider2(const std::string &restrict text, const std::string &restrict def, const OnTheFly onTheFly, const MainConfig mainConfig, - const bool doNotAlign) : + const DoNotAlign doNotAlign) : SetupItem(text, description, keyName, parent, eventName, def, mainConfig), mHorizont(nullptr), mLabel(nullptr), @@ -926,7 +926,7 @@ void SetupItemSlider2::createControls() mWidget = mSlider; mSlider->setWidth(150); mSlider->setHeight(40); - if (!mDoNotAlign) + if (mDoNotAlign == DoNotAlign_false) fixFirstItemSize(mLabel); mHorizont->add(mLabel); mHorizont->add(mSlider, -10); |