diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-31 16:58:08 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-13 13:53:19 +0000 |
commit | e719087dce50d739c723c5ef9af2a9226318aa02 (patch) | |
tree | 695fcd6493a30e64ae8e4b8d6e6c73a01eb1d4f8 /src/imports/controls/doc/src/includes | |
parent | 0a9634b74c21881deb125a8f7a4c9fea787ca636 (diff) |
Add SwitchDelegate
SwitchDelegate is an item delegate that is used in lists, and can be
checked and unchecked. It derives from QQuickItemDelegate and hence has
background press effects. The order of the indicator and text is
reversed (compared to Switch) to reflect what is most commonly
seen on mobile.
Change-Id: I6f8fca8d1a8c91f2cb9d8bbbb685ad163712dfa1
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/doc/src/includes')
-rw-r--r-- | src/imports/controls/doc/src/includes/qquickswitch.qdocinc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/imports/controls/doc/src/includes/qquickswitch.qdocinc b/src/imports/controls/doc/src/includes/qquickswitch.qdocinc new file mode 100644 index 00000000..aee93a26 --- /dev/null +++ b/src/imports/controls/doc/src/includes/qquickswitch.qdocinc @@ -0,0 +1,28 @@ +//! [position] + +This property holds the logical position of the thumb indicator. + +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. + +\sa visualPosition + +//! [position] + + +//! [visualPosition] + +This property holds the visual position of the thumb indicator. + +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. +In order to for example determine whether the thumb has been dragged past +the halfway, the logical \l position should be used instead. + +\sa position + +//! [visualPosition] |