aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickrangeslider.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2017-06-22 14:39:10 +0200
committerMitch Curtis <mitch.curtis@qt.io>2017-06-22 13:00:04 +0000
commitc11ef4ffa905ac9ba5e5af89ed03b1786b5187a8 (patch)
treebd65e8659b66e94477dfbbc85e0e5c3a2dcc96bc /src/quicktemplates2/qquickrangeslider.cpp
parent0d851ddab069bd4373e90beacba0efa38ec021bb (diff)
Doc: explain the syntax for RangeSlider's first/second change handlers
This is not obvious for those who are not familiar with grouped properties. Change-Id: I4b3e02f3bbba7c7a0ec1897da99af8e5d048e570 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickrangeslider.cpp')
-rw-r--r--src/quicktemplates2/qquickrangeslider.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickrangeslider.cpp b/src/quicktemplates2/qquickrangeslider.cpp
index 276e8d0c..2fadc43f 100644
--- a/src/quicktemplates2/qquickrangeslider.cpp
+++ b/src/quicktemplates2/qquickrangeslider.cpp
@@ -68,6 +68,13 @@ QT_BEGIN_NAMESPACE
}
\endcode
+ In order to perform an action when the value for a particular handle changes,
+ use the following syntax:
+
+ \code
+ first.onValueChanged: console.log("first.value changed to " + first.value)
+ \endcode
+
The \l {first.position} and \l {second.position} properties are expressed as
fractions of the control's size, in the range \c {0.0 - 1.0}.
The \l {first.visualPosition} and \l {second.visualPosition} properties are