summaryrefslogtreecommitdiff
path: root/src/gui/widgets/inttextfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 18:37:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 18:37:06 +0300
commitc25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31 (patch)
treeac124c630bc17ef10a8885a49fbb387f7091d15d /src/gui/widgets/inttextfield.cpp
parent88697bc3503090194877b241b987ddc751034166 (diff)
downloadplus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.gz
plus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.bz2
plus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.xz
plus-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.zip
Add strong typed bool type Enable.
Diffstat (limited to 'src/gui/widgets/inttextfield.cpp')
-rw-r--r--src/gui/widgets/inttextfield.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/inttextfield.cpp b/src/gui/widgets/inttextfield.cpp
index d198fa9b8..094f2e50c 100644
--- a/src/gui/widgets/inttextfield.cpp
+++ b/src/gui/widgets/inttextfield.cpp
@@ -35,7 +35,7 @@ IntTextField::IntTextField(const Widget2 *const widget,
const int def,
const int min,
const int max,
- const bool enabled,
+ const Enable enabled,
const int width) :
TextField(widget, toString(def)),
mMin(0),
@@ -46,7 +46,7 @@ IntTextField::IntTextField(const Widget2 *const widget,
if (min != 0 || max != 0)
setRange(min, max);
- setEnabled(enabled);
+ setEnabled(enabled == Enable_true);
if (width != 0)
setWidth(width);
}