summaryrefslogtreecommitdiff
path: root/src/gui/widgets/inttextfield.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 02:10:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 02:10:59 +0300
commit46f0755975033f37eaae9db73c0e2b6499c2a923 (patch)
tree5c13c361ce4a4e4fd0e07fca1953c54637965666 /src/gui/widgets/inttextfield.h
parent1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (diff)
downloadmv-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.gz
mv-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.bz2
mv-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.xz
mv-46f0755975033f37eaae9db73c0e2b6499c2a923.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/inttextfield.h')
-rw-r--r--src/gui/widgets/inttextfield.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/inttextfield.h b/src/gui/widgets/inttextfield.h
index 7284c9d03..0f92692f3 100644
--- a/src/gui/widgets/inttextfield.h
+++ b/src/gui/widgets/inttextfield.h
@@ -34,18 +34,18 @@ class IntTextField : public TextField
/**
* Constructor, sets default value.
*/
- IntTextField(int def = 0, int min = 0, int max = 0,
- bool enabled = true, int width = 0);
+ IntTextField(const int def = 0, const int min = 0, const int max = 0,
+ const bool enabled = true, const int width = 0);
/**
* Sets the minimum and maximum values of the text box.
*/
- void setRange(int minimum, int maximum);
+ void setRange(const int minimum, const int maximum);
/**
* Returns the value in the text box.
*/
- int getValue();
+ int getValue() const;
/**
* Reset the field to the default value.
@@ -55,12 +55,12 @@ class IntTextField : public TextField
/**
* Set the value of the text box to the specified value.
*/
- void setValue(int value);
+ void setValue(const int value);
/**
* Set the default value of the text box to the specified value.
*/
- void setDefaultValue(int value);
+ void setDefaultValue(const int value);
/**
* Responds to key presses.