aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/snippets')
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-busyindicator.qml5
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-pageindicator.qml17
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml26
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
+ }
+}