diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-06-10 16:35:47 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-06-10 16:52:12 +0000 |
commit | b57245ac65d339d4aa803d38005118b99783b2b3 (patch) | |
tree | d2239a0dd957ec8abd6cd3d1c97cd00d07170eee /src/imports/controls | |
parent | a28996de0aa7321855c28aa7720ad713936b7caa (diff) |
Docs: Switch
Change-Id: I1cdac365b12b7c7fb88c10f8a1de9d68ec1b44d8
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls')
-rw-r--r-- | src/imports/controls/Switch.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/controls/Switch.qml b/src/imports/controls/Switch.qml index 97c1bd5c..c1661f35 100644 --- a/src/imports/controls/Switch.qml +++ b/src/imports/controls/Switch.qml @@ -56,6 +56,7 @@ AbstractSwitch { padding: Theme.padding + //! [indicator] indicator: Rectangle { implicitWidth: 36 implicitHeight: 20 @@ -89,7 +90,9 @@ AbstractSwitch { } } } + //! [indicator] + //! [label] label: Text { x: control.mirrored ? control.leftPadding : (indicator.x + indicator.width + control.Theme.spacing) y: control.topPadding @@ -103,4 +106,5 @@ AbstractSwitch { horizontalAlignment: Text.AlignLeft verticalAlignment: Text.AlignVCenter } + //! [label] } |