aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickdial.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-20 15:29:45 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-21 06:31:32 +0000
commit92cbfffc5c2a4bd12c9d4dd5862ecbf1c1fdc7c4 (patch)
tree4471cbab02e8291d6cb4b42ac6650a8637127286 /src/quicktemplates2/qquickdial.cpp
parent6b45995c0cd1dfdc96531feaa67a26cdf1fc129b (diff)
Add GIFs for Dial
Change-Id: I9b3670e9976a4b743f49a0eae3939e99944ea277 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdial.cpp')
-rw-r--r--src/quicktemplates2/qquickdial.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickdial.cpp b/src/quicktemplates2/qquickdial.cpp
index e1084978..1ebbbd63 100644
--- a/src/quicktemplates2/qquickdial.cpp
+++ b/src/quicktemplates2/qquickdial.cpp
@@ -55,7 +55,8 @@ QT_BEGIN_NAMESPACE
value within a range.
The value of the dial is set with the \l value property. The range is
- set with the \l from and \l to properties.
+ set with the \l from and \l to properties. To enable or disable wrapping,
+ use the \l wrap property.
The dial can be manipulated with a keyboard. It supports the following
actions:
@@ -362,8 +363,15 @@ void QQuickDial::setSnapMode(SnapMode mode)
This property holds whether the dial wraps when dragged.
For example, when this property is set to \c true, dragging the dial past
- the \e "zero" position will result in the handle being positioned at the
- opposite side, and vice versa.
+ the \l to position will result in the handle being positioned at the
+ \l from position, and vice versa:
+
+ \image qtquickcontrols2-dial-wrap.gif
+
+ When this property is \c false, it's not possible to drag the dial across
+ the from and to values.
+
+ \image qtquickcontrols2-dial-no-wrap.gif
The default value is \c true.
*/