diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-18 12:59:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-18 12:59:20 +0300 |
commit | 4a137325c501fe143197f2fcb97b0ad63ba4bbab (patch) | |
tree | fa70f4336990c3ba51bae795bb64f03bf37a2af2 /src/gui/widgets/textfield.h | |
parent | dc81c59c99e911499f5c12b0ba21e54a96210ebe (diff) | |
download | mv-4a137325c501fe143197f2fcb97b0ad63ba4bbab.tar.gz mv-4a137325c501fe143197f2fcb97b0ad63ba4bbab.tar.bz2 mv-4a137325c501fe143197f2fcb97b0ad63ba4bbab.tar.xz mv-4a137325c501fe143197f2fcb97b0ad63ba4bbab.zip |
improve textfield.
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r-- | src/gui/widgets/textfield.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h index d26d16d21..5e1553acd 100644 --- a/src/gui/widgets/textfield.h +++ b/src/gui/widgets/textfield.h @@ -51,7 +51,7 @@ class TextField : public gcn::TextField, const std::string &text = "", const bool loseFocusOnTab = true, gcn::ActionListener *const listener = nullptr, - std::string eventId = "", + const std::string &eventId = "", const bool sendAlwaysEvents = false); A_DELETE_COPY(TextField) @@ -81,7 +81,7 @@ class TextField : public gcn::TextField, /** * Set the range on the field if it is numeric */ - void setRange(int min, int max) + void setRange(const int min, const int max) { mMinimum = min; mMaximum = max; @@ -95,13 +95,13 @@ class TextField : public gcn::TextField, /** * Set the minimum value for a range */ - void setMinimum(int min) + void setMinimum(const int min) { mMinimum = min; } /** * Set the maximum value for a range */ - void setMaximum(int max) + void setMaximum(const int max) { mMaximum = max; } /** @@ -109,7 +109,7 @@ class TextField : public gcn::TextField, */ int getValue() const A_WARN_UNUSED; - void setSendAlwaysEvents(bool b) + void setSendAlwaysEvents(const bool b) { mSendAlwaysEvents = b; } void adjustSize(); @@ -124,9 +124,9 @@ class TextField : public gcn::TextField, void handleCopy() const; - void focusGained(const gcn::Event &event); + void focusGained(const gcn::Event &event) override; - void focusLost(const gcn::Event &event); + void focusLost(const gcn::Event &event) override; protected: void drawCaret(gcn::Graphics* graphics, int x) override; |