diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-15 14:41:10 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-15 14:45:48 +0000 |
commit | d3497470a848c958ffd69f45be0df3129bf2902d (patch) | |
tree | ff9bcc18302251c8e0b72ee52a831379aacb9809 /tests | |
parent | 3fc2c58ff6864ac1b7b6d6979f13bfc4249cde8f (diff) |
Docs: Indicators group
Change-Id: I092b50dd0f184523ec28e4145a4e6b1eab1c762a
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
3 files changed, 48 insertions, 0 deletions
diff --git a/tests/auto/snippets/data/qtlabscontrols-busyindicator.qml b/tests/auto/snippets/data/qtlabscontrols-busyindicator.qml new file mode 100644 index 00000000..3234d010 --- /dev/null +++ b/tests/auto/snippets/data/qtlabscontrols-busyindicator.qml @@ -0,0 +1,5 @@ +import QtQuick 2.0 +import Qt.labs.controls 1.0 + +BusyIndicator { +} diff --git a/tests/auto/snippets/data/qtlabscontrols-pageindicator.qml b/tests/auto/snippets/data/qtlabscontrols-pageindicator.qml new file mode 100644 index 00000000..18000654 --- /dev/null +++ b/tests/auto/snippets/data/qtlabscontrols-pageindicator.qml @@ -0,0 +1,17 @@ +import QtQuick 2.0 +import Qt.labs.controls 1.0 + +Rectangle { + width: 100 + height: 100 + border.color: Theme.frameColor + + //! [1] + PageIndicator { + count: 5 + currentIndex: 2 + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + } + //! [1] +} diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml b/tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml new file mode 100644 index 00000000..dff23c2a --- /dev/null +++ b/tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml @@ -0,0 +1,26 @@ +import QtQuick 2.0 +import Qt.labs.controls 1.0 + +Rectangle { + width: 100 + height: 100 + border.color: Theme.frameColor + + ScrollIndicator { + size: 0.3 + position: 0.2 + active: true + orientation: Qt.Vertical + height: parent.height + anchors.right: parent.right + } + + ScrollIndicator { + size: 0.6 + position: 0.3 + active: true + orientation: Qt.Horizontal + width: parent.width + anchors.bottom: parent.bottom + } +} |