From 4aadcdae61c205b6daad75fb002166cd278c2914 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 27 Jan 2017 13:00:15 +0100 Subject: 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 --- src/quicktemplates2/qquickdial.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3