From ca05a729acaf06aabfbbbc681cfa650785659005 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 11 Apr 2016 15:57:53 +0200 Subject: Correct Switch position & visualPosition documentation The position is defined as a percentage of the indicator's size, not the control's. Change-Id: I5f758aa432413c2d93e394f19a1b1109e356a31d Reviewed-by: J-P Nurmi --- src/templates/qquickswitch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/templates/qquickswitch.cpp b/src/templates/qquickswitch.cpp index 8b647d45..8685f617 100644 --- a/src/templates/qquickswitch.cpp +++ b/src/templates/qquickswitch.cpp @@ -181,7 +181,7 @@ QQuickSwitch::QQuickSwitch(QQuickItem *parent) : This property holds the logical position of the thumb indicator. - The position is defined as a percentage of the control's size, scaled to + The position is defined as a percentage of the indicator's size, scaled to \c 0.0 - \c 1.0. The position can be used for example to determine whether the thumb has been dragged past the halfway. For visualizing a thumb indicator, the right-to-left aware \l visualPosition should be used instead. @@ -212,7 +212,7 @@ void QQuickSwitch::setPosition(qreal position) This property holds the visual position of the thumb indicator. - The position is defined as a percentage of the control's size, scaled to + The position is defined as a percentage of the indicator's size, scaled to \c 0.0 - \c 1.0. When the control is \l {Control::mirrored}{mirrored}, the value is equal to \c {1.0 - position}. This makes the value suitable for visualizing the thumb indicator taking right-to-left support into account. -- cgit v1.2.3