summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2010-03-23 17:56:47 -0700
committerAnders Bakken <anders.bakken@nokia.com>2010-03-23 17:56:47 -0700
commit8f01952fcc062ad042601d75a994b43ee289ac0f (patch)
tree8f7094f1e66825274c2aa0fa65935d162f419925
parenta4d5adba9f5f7a18f0f38f18fd6e6e87b3819ec1 (diff)
downloadqt4-tools-8f01952fcc062ad042601d75a994b43ee289ac0f.tar.gz
Doc update for QSpinBox::textFromValue
We remove the group separator so the docs should reflect this. Reviewed-by: Donald Carr <donald.carr@nokia.com>
-rw-r--r--src/gui/widgets/qspinbox.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/widgets/qspinbox.cpp b/src/gui/widgets/qspinbox.cpp
index 726426d984..2d871d0e27 100644
--- a/src/gui/widgets/qspinbox.cpp
+++ b/src/gui/widgets/qspinbox.cpp
@@ -448,11 +448,12 @@ void QSpinBox::setRange(int minimum, int maximum)
}
/*!
- This virtual function is used by the spin box whenever it needs
- to display the given \a value. The default implementation returns
- a string containing \a value printed in the standard way using
- QWidget::locale().toString(). Reimplementations may return anything. (See
- the example in the detailed description.)
+ This virtual function is used by the spin box whenever it needs to
+ display the given \a value. The default implementation returns a
+ string containing \a value printed in the standard way using
+ QWidget::locale().toString(), but with the thousand separator
+ removed. Reimplementations may return anything. (See the example
+ in the detailed description.)
Note: QSpinBox does not call this function for specialValueText()
and that neither prefix() nor suffix() should be included in the
@@ -461,7 +462,7 @@ void QSpinBox::setRange(int minimum, int maximum)
If you reimplement this, you may also need to reimplement
valueFromText() and validate()
- \sa valueFromText(), validate()
+ \sa valueFromText(), validate(), QLocale::groupSeparator()
*/
QString QSpinBox::textFromValue(int value) const
@@ -869,7 +870,7 @@ void QDoubleSpinBox::setDecimals(int decimals)
If you reimplement this, you may also need to reimplement
valueFromText().
- \sa valueFromText()
+ \sa valueFromText(), QLocale::groupSeparator()
*/