summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-04-05 15:11:43 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-04-05 14:50:30 +0000
commita14bfea50058f58f23d7864b8ab90bd92b9364d8 (patch)
tree6b5c2684d499a964c936bbc4223f0b916c739ed7 /src
parent2823cc6d4b24b26f82c991c532b749baa9dbb3a7 (diff)
Improve QAbstractSpinBox::stepBy() docs
Change-Id: I28e942b6b2952205641c751e4c120cb38ae13fd6 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qabstractspinbox.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widgets/widgets/qabstractspinbox.cpp b/src/widgets/widgets/qabstractspinbox.cpp
index 7ca47e9f0f..e059f2d52f 100644
--- a/src/widgets/widgets/qabstractspinbox.cpp
+++ b/src/widgets/widgets/qabstractspinbox.cpp
@@ -611,12 +611,11 @@ void QAbstractSpinBox::stepDown()
}
/*!
Virtual function that is called whenever the user triggers a step.
- The \a steps parameter indicates how many steps were taken, e.g.
- Pressing Qt::Key_Down will trigger a call to stepBy(-1),
- whereas pressing Qt::Key_Prior will trigger a call to
- stepBy(10).
+ The \a steps parameter indicates how many steps were taken.
+ For example, pressing \c Qt::Key_Down will trigger a call to \c stepBy(-1),
+ whereas pressing \c Qt::Key_PageUp will trigger a call to \c stepBy(10).
- If you subclass QAbstractSpinBox you must reimplement this
+ If you subclass \c QAbstractSpinBox you must reimplement this
function. Note that this function is called even if the resulting
value will be outside the bounds of minimum and maximum. It's this
function's job to handle these situations.