From f722ebc09a6d0336bd3bc86ef7e621932adb5064 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 17 Apr 2018 11:48:22 +0200 Subject: Slider, RangeSlider: document pressed slightly more thoroughly Change-Id: I16d6ece7ae0e4278c7bc02a6db294863116e84c7 Reviewed-by: J-P Nurmi --- src/quicktemplates2/qquickrangeslider.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/quicktemplates2/qquickrangeslider.cpp') 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. -- cgit v1.2.3 From 9b8338c20236f705d1472c0a7c7244646369d58f Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 17 Apr 2018 14:51:53 +0200 Subject: Slider, RangeSlider: document stepSize's relation to snapMode Task-number: QTBUG-67478 Change-Id: Idb2a24fe6397b8c86d94e250968bc4e175bfa554 Reviewed-by: J-P Nurmi --- src/quicktemplates2/qquickrangeslider.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/quicktemplates2/qquickrangeslider.cpp') diff --git a/src/quicktemplates2/qquickrangeslider.cpp b/src/quicktemplates2/qquickrangeslider.cpp index 4da1df82..35797203 100644 --- a/src/quicktemplates2/qquickrangeslider.cpp +++ b/src/quicktemplates2/qquickrangeslider.cpp @@ -792,6 +792,9 @@ void QQuickRangeSlider::setStepSize(qreal step) This property holds the snap mode. + The snap mode determines how the slider handles behave with + regards to the \l stepSize. + Possible values: \value RangeSlider.NoSnap The slider does not snap (default). \value RangeSlider.SnapAlways The slider snaps while the handle is dragged. -- cgit v1.2.3