diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-01-27 13:00:15 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-27 13:37:50 +0000 |
commit | 4aadcdae61c205b6daad75fb002166cd278c2914 (patch) | |
tree | 5f772d8c01fd4d0108e6839fc9ef2fbfaecb4e04 /src/quicktemplates2 | |
parent | b026ebf67a95c6bca186e69e6e71b6fb70b4eeb3 (diff) |
Default QQuickDial::live to true
[ChangeLog][Important Behavior Changes] On a popular demand, Dial
has been changed to report live value updates. This can be disabled
by setting Dial::live to false.
Change-Id: Ie591ec33f56482b825250f64abf55118afec3e6b
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r-- | src/quicktemplates2/qquickdial.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/quicktemplates2/qquickdial.cpp b/src/quicktemplates2/qquickdial.cpp index 12f1d331..0539b8cd 100644 --- a/src/quicktemplates2/qquickdial.cpp +++ b/src/quicktemplates2/qquickdial.cpp @@ -106,7 +106,7 @@ public: pressed(false), snapMode(QQuickDial::NoSnap), wrap(false), - live(false), + live(true), handle(nullptr) { } @@ -323,11 +323,6 @@ void QQuickDial::setTo(qreal to) This property holds the value in the range \c from - \c to. The default value is \c 0.0. - Unlike the \l position property, the \c value is not updated by default - while the handle is dragged. The value is updated after the value has - been chosen and the dial has been released. The \l live property can be - used to make the dial provide live updates for the \c value property. - \sa position, live */ qreal QQuickDial::value() const @@ -358,8 +353,6 @@ void QQuickDial::setValue(qreal value) The position is expressed as a fraction of the control's angle range (the range within which the handle can be moved) in the range \c {0.0 - 1.0}. - Unlike the \l value property, the \c position is continuously updated while - the handle is dragged. \sa value, angle */ @@ -375,9 +368,6 @@ qreal QQuickDial::position() const This property holds the angle of the handle. - Like the \l position property, angle is continuously updated while the - handle is dragged. - The range is from \c -140 degrees to \c 140 degrees. \sa position @@ -529,9 +519,9 @@ void QQuickDial::setPressed(bool pressed) This property holds whether the dial provides live updates for the \l value property while the handle is dragged. - The default value is \c false. + The default value is \c true. - \sa value + \sa value, valueAt() */ bool QQuickDial::live() const { |