summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 22:26:28 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 22:26:28 +0300
commitec9116cd7f52e61afc4267b21e35325f4e7fc705 (patch)
tree4daea73098e216464c0de6953733080058ead1c8 /src/gui/widgets/setupitem.h
parent8c11a0235e6ed4e3ed6370014cff3cd0322ed6c5 (diff)
downloadmv-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.h')
-rw-r--r--src/gui/widgets/setupitem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h
index 80b7658ba..0d817a4b4 100644
--- a/src/gui/widgets/setupitem.h
+++ b/src/gui/widgets/setupitem.h
@@ -23,6 +23,7 @@
#include "enums/simpletypes/mainconfig.h"
#include "enums/simpletypes/usebase64.h"
+#include "enums/simpletypes/separator.h"
#include "gui/widgets/widget2.h"
@@ -284,7 +285,7 @@ class SetupItemLabel final : public SetupItem
SetupItemLabel(const std::string &restrict text,
const std::string &restrict description,
SetupTabScroll *restrict const parent,
- const bool separator = true);
+ const Separator separator = Separator_true);
A_DELETE_COPY(SetupItemLabel)
@@ -302,7 +303,7 @@ class SetupItemLabel final : public SetupItem
protected:
Label *mLabel;
- bool mIsSeparator;
+ Separator mIsSeparator;
};
class SetupItemDropDown final : public SetupItem