diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-12 22:51:00 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-14 11:58:59 +0000 |
commit | 918a92c866a4c37209c98e97fdb03b312d82a4d3 (patch) | |
tree | 0de8ca83236a140e9fd358424a750dbbd5ee7313 /tests/auto/snippets/data | |
parent | 090db511a36464c78f11df3b6596a56f09986951 (diff) |
Docs: SwipeView
Change-Id: Iabeb3ebc54f64d2f3d0b008a5f5a16a89f701f85
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests/auto/snippets/data')
-rw-r--r-- | tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml new file mode 100644 index 00000000..530df68e --- /dev/null +++ b/tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml @@ -0,0 +1,36 @@ +import QtQuick 2.0 +import Qt.labs.controls 1.0 + +Item { + width: 200 + height: 320 + + //! [1] + SwipeView { + id: view + + currentIndex: 1 + anchors.fill: parent + + Item { + id: firstPage + } + Item { + id: secondPage + } + Item { + id: thirdPage + } + } + + PageIndicator { + id: indicator + + count: view.count + currentIndex: view.currentIndex + + anchors.bottom: view.bottom + anchors.horizontalCenter: parent.horizontalCenter + } + //! [1] +} |