From 4a137325c501fe143197f2fcb97b0ad63ba4bbab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 18 Jun 2013 12:59:20 +0300 Subject: improve textfield. --- src/gui/widgets/textfield.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui/widgets/textfield.h') 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; -- cgit v1.2.3-70-g09d2