diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-31 22:26:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-31 22:26:28 +0300 |
commit | ec9116cd7f52e61afc4267b21e35325f4e7fc705 (patch) | |
tree | 4daea73098e216464c0de6953733080058ead1c8 /src/gui/widgets/setupitem.cpp | |
parent | 8c11a0235e6ed4e3ed6370014cff3cd0322ed6c5 (diff) | |
download | mv-ec9116cd7f52e61afc4267b21e35325f4e7fc705.tar.gz mv-ec9116cd7f52e61afc4267b21e35325f4e7fc705.tar.bz2 mv-ec9116cd7f52e61afc4267b21e35325f4e7fc705.tar.xz mv-ec9116cd7f52e61afc4267b21e35325f4e7fc705.zip |
Add strong typed bool enum separator.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 6e9e2bf96..94e6231f9 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -576,7 +576,7 @@ void SetupItemIntTextField::apply(const std::string &eventName) SetupItemLabel::SetupItemLabel(const std::string &restrict text, const std::string &restrict description, SetupTabScroll *restrict const parent, - const bool separator) : + const Separator separator) : SetupItem(text, description, "", parent, "", "", MainConfig_true), mLabel(nullptr), mIsSeparator(separator) @@ -593,7 +593,7 @@ SetupItemLabel::~SetupItemLabel() void SetupItemLabel::createControls() { - if (mIsSeparator) + if (mIsSeparator == Separator_true) { const std::string str(" \342\200\225\342\200\225\342\200\225" "\342\200\225\342\200\225 "); |