diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2010-03-24 00:56:47 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2010-03-24 00:56:47 (GMT) |
commit | 8f01952fcc062ad042601d75a994b43ee289ac0f (patch) | |
tree | 8f7094f1e66825274c2aa0fa65935d162f419925 /src/gui/widgets | |
parent | a4d5adba9f5f7a18f0f38f18fd6e6e87b3819ec1 (diff) | |
download | Qt-8f01952fcc062ad042601d75a994b43ee289ac0f.zip Qt-8f01952fcc062ad042601d75a994b43ee289ac0f.tar.gz Qt-8f01952fcc062ad042601d75a994b43ee289ac0f.tar.bz2 |
Doc update for QSpinBox::textFromValue
We remove the group separator so the docs should reflect this.
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qspinbox.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/widgets/qspinbox.cpp b/src/gui/widgets/qspinbox.cpp index 726426d..2d871d0 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() */ |