diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml | 36 | ||||
-rw-r--r-- | tests/auto/snippets/tst_snippets.cpp | 2 |
2 files changed, 38 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] +} diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp index 39375e12..3a3ab218 100644 --- a/tests/auto/snippets/tst_snippets.cpp +++ b/tests/auto/snippets/tst_snippets.cpp @@ -89,6 +89,8 @@ void tst_Snippets::screenshots() QVERIFY(spy.isValid()); QVERIFY(spy.wait()); QVERIFY(result->saveToFile(output)); + + QGuiApplication::processEvents(); } void tst_Snippets::screenshots_data() |