aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/snippets
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-16 16:20:09 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-19 09:31:52 +0000
commit1ca3309fca92390fb8bf24cbefe62d0611a802cd (patch)
treecd20305ec29a7f2b4bcd7b6b8866113709416938 /tests/auto/snippets
parent1c3ab8042c6d6dcec283e1142ad4bb0e4fb6eddb (diff)
Docs: include ScrollBar in indicators & add a screenshot
Change-Id: I1ff8df098a358d39020a63aa8f1d920f620f838e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/snippets')
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollbar.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollbar.qml b/tests/auto/snippets/data/qtlabscontrols-scrollbar.qml
new file mode 100644
index 00000000..9de22a66
--- /dev/null
+++ b/tests/auto/snippets/data/qtlabscontrols-scrollbar.qml
@@ -0,0 +1,26 @@
+import QtQuick 2.0
+import Qt.labs.controls 1.0
+
+Rectangle {
+ width: 100
+ height: 100
+ border.color: Theme.frameColor
+
+ ScrollBar {
+ size: 0.3
+ position: 0.2
+ active: true
+ orientation: Qt.Vertical
+ height: parent.height
+ anchors.right: parent.right
+ }
+
+ ScrollBar {
+ size: 0.6
+ position: 0.3
+ active: true
+ orientation: Qt.Horizontal
+ width: parent.width
+ anchors.bottom: parent.bottom
+ }
+}