diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:34:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:34:34 +0300 |
commit | 40ddc72b737a1040f5adab239f68e1fbc32c6a70 (patch) | |
tree | a9fa49c7eda5227b5dbb170f7be2586ff35f9943 /src/gui/widgets/textfield.h | |
parent | e9fb9da5bf17d3402781eb5205be7d2f794887ee (diff) | |
download | mv-40ddc72b737a1040f5adab239f68e1fbc32c6a70.tar.gz mv-40ddc72b737a1040f5adab239f68e1fbc32c6a70.tar.bz2 mv-40ddc72b737a1040f5adab239f68e1fbc32c6a70.tar.xz mv-40ddc72b737a1040f5adab239f68e1fbc32c6a70.zip |
Add strong typed bool LoseFocusOnTab.
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r-- | src/gui/widgets/textfield.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h index aa016ef04..e5173b3f1 100644 --- a/src/gui/widgets/textfield.h +++ b/src/gui/widgets/textfield.h @@ -71,6 +71,8 @@ #include "listeners/mouselistener.h" #include "listeners/widgetlistener.h" +#include "enums/simpletypes/losefocusontab.h" + #include "gui/fonts/textchunk.h" #include "gui/widgets/widget.h" @@ -94,7 +96,8 @@ class TextField notfinal : public Widget, */ explicit TextField(const Widget2 *restrict const widget, const std::string &restrict text = "", - const bool loseFocusOnTab = true, + const LoseFocusOnTab loseFocusOnTab = + LoseFocusOnTab_true, ActionListener *restrict const listener = nullptr, const std::string &restrict eventId = "", @@ -280,7 +283,7 @@ class TextField notfinal : public Widget, time_t mLastEventPaste; int mPadding; bool mNumeric; - bool mLoseFocusOnTab; + LoseFocusOnTab mLoseFocusOnTab; bool mAllowSpecialActions; bool mSendAlwaysEvents; bool mTextChanged; |