diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-11 15:57:53 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-11 15:06:39 +0000 |
commit | ca05a729acaf06aabfbbbc681cfa650785659005 (patch) | |
tree | a9fe83711ebfe0ec95d2904dacbbe539a4e5050c /src | |
parent | e7b42b4de0d9148e53a245ffd4eb26338fd9f8dc (diff) |
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 <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/templates/qquickswitch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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. |