aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickrangeslider.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-06-22 20:59:07 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-06-22 20:59:07 +0200
commita31a5ade38ad13b699039239343f154dc1504f50 (patch)
treeb36e6b8c6d79209ac0f165a4cb1e52edaf8ce7e1 /src/quicktemplates2/qquickrangeslider.cpp
parent6d9d5d41151e790f26ba59bd88d6515485326a57 (diff)
parentc11ef4ffa905ac9ba5e5af89ed03b1786b5187a8 (diff)
Merge remote-tracking branch 'origin/5.9' into dev
Conflicts: src/quicktemplates2/qquickspinbox.cpp tests/auto/controls/data/tst_scrollbar.qml Change-Id: Ief9481cb648076a951db0aeffaeb11aeaf392677
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 c1cf13db..3c9065db 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