From 1ca3309fca92390fb8bf24cbefe62d0611a802cd Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 16 Oct 2015 16:20:09 +0200 Subject: Docs: include ScrollBar in indicators & add a screenshot Change-Id: I1ff8df098a358d39020a63aa8f1d920f620f838e Reviewed-by: Mitch Curtis --- .../snippets/data/qtlabscontrols-scrollbar.qml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/auto/snippets/data/qtlabscontrols-scrollbar.qml (limited to 'tests') 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 + } +} -- cgit v1.2.3