diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2017-06-22 14:39:10 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-06-22 13:00:04 +0000 |
commit | c11ef4ffa905ac9ba5e5af89ed03b1786b5187a8 (patch) | |
tree | bd65e8659b66e94477dfbbc85e0e5c3a2dcc96bc | |
parent | 0d851ddab069bd4373e90beacba0efa38ec021bb (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>
-rw-r--r-- | src/quicktemplates2/qquickrangeslider.cpp | 7 |
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 |