aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-04-17 11:48:22 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-04-18 13:25:21 +0000
commitf722ebc09a6d0336bd3bc86ef7e621932adb5064 (patch)
tree149185f6e40b36dd1a91a2dbc5c59e6eb0630e4b
parentc0232099a9fac03ef0f5287b6a26dbbd46669c06 (diff)
Slider, RangeSlider: document pressed slightly more thoroughly
Change-Id: I16d6ece7ae0e4278c7bc02a6db294863116e84c7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--src/quicktemplates2/qquickrangeslider.cpp6
-rw-r--r--src/quicktemplates2/qquickslider.cpp3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickrangeslider.cpp b/src/quicktemplates2/qquickrangeslider.cpp
index 9bd39d62..4da1df82 100644
--- a/src/quicktemplates2/qquickrangeslider.cpp
+++ b/src/quicktemplates2/qquickrangeslider.cpp
@@ -690,7 +690,8 @@ void QQuickRangeSlider::setTo(qreal to)
\l {first.visualPosition}{visualPosition} should be used instead.
\row
\li pressed
- \li This property holds whether the first handle is pressed.
+ \li This property holds whether the first handle is pressed by either touch,
+ mouse, or keys.
\row
\li hovered
\li This property holds whether the first handle is hovered.
@@ -747,7 +748,8 @@ QQuickRangeSliderNode *QQuickRangeSlider::first() const
\l {second.visualPosition}{visualPosition} should be used instead.
\row
\li pressed
- \li This property holds whether the second handle is pressed.
+ \li This property holds whether the second handle is pressed by either touch,
+ mouse, or keys.
\row
\li hovered
\li This property holds whether the second handle is hovered.
diff --git a/src/quicktemplates2/qquickslider.cpp b/src/quicktemplates2/qquickslider.cpp
index 2143e536..0729b5d4 100644
--- a/src/quicktemplates2/qquickslider.cpp
+++ b/src/quicktemplates2/qquickslider.cpp
@@ -459,7 +459,8 @@ void QQuickSlider::setSnapMode(SnapMode mode)
/*!
\qmlproperty bool QtQuick.Controls::Slider::pressed
- This property holds whether the slider is pressed.
+ This property holds whether the slider is pressed by either touch, mouse,
+ or keys.
*/
bool QQuickSlider::isPressed() const
{