aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-22 16:52:10 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-30 15:41:26 +0000
commit53a9c9e2c01199aec3c0848593226f8a3e7d5dee (patch)
tree82dc1480fcd2817da1e206ffd9863021c4b3f107 /tests
parent72f3a5a0957e4347f8f3db6d4638866e52a8ab61 (diff)
Move the code snippets to a more logical place
They are part of the documentation, but just auto-tested to ensure that they are actually creatable and don't throw warnings. Therefore the logical place is in the doc/snippets folder instead of somewhere in the tests/ tree. Change-Id: Id79a19890f7457ef277e7434a3fc6b6fb20eaa25 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-calendarmodel.qml30
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-dayofweekrow-layout.qml20
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-dayofweekrow.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-monthgrid-layout.qml34
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-monthgrid.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn-layout.qml22
-rw-r--r--tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-busyindicator-background.qml9
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-busyindicator-indicator.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-busyindicator.qml5
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button-background.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button-disabled.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button-focused.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button-label.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button-normal.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button-pressed.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-button.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-background.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-checked.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-disabled.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-focused.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-indicator.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-label.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox-normal.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-checkbox.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-dial-background.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-dial-handle.qml14
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-dial.qml5
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-frame-background.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-frame-frame.qml13
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-frame.qml14
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-groupbox-background.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-groupbox-frame.qml14
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-groupbox-label.qml14
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-groupbox.qml15
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-label-background.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-label.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-pageindicator.qml17
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-progressbar-background.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-progressbar-disabled.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-progressbar-indicator.qml13
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-progressbar-normal.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-background.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-checked.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-disabled.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-focused.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-indicator.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-label.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton-normal.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-radiobutton.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-background.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-disabled.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle-focused.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-normal.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle-focused.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider-track.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-rangeslider.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollbar-background.qml13
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollbar-handle.qml15
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollbar.qml26
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollindicator-background.qml13
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollindicator-indicator.qml15
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml26
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider-background.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider-disabled.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider-focused.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider-handle.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider-normal.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider-track.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-slider.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-spinbox-background.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-spinbox-contentItem.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-spinbox-down.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-spinbox-textual.qml28
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-spinbox-up.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-spinbox.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml36
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-background.qml10
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-checked.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-disabled.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-focused.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-indicator.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-label.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch-normal.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-switch.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-tabbar.qml37
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-tabbutton.qml16
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-textarea.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-textfield-background.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-textfield-disabled.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-textfield-focused.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-textfield-normal.qml7
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-textfield.qml6
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbar-background.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbar-frame.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbar.qml18
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbutton-background.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbutton-label.qml11
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbutton.qml8
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-tumbler-background.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-tumbler-contentItem.qml12
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-tumbler-delegate.qml20
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-tumbler.qml6
-rw-r--r--tests/auto/snippets/snippets.pro2
-rw-r--r--tests/auto/snippets/tst_snippets.cpp4
107 files changed, 4 insertions, 1198 deletions
diff --git a/tests/auto/snippets/data/qtlabscalendar-calendarmodel.qml b/tests/auto/snippets/data/qtlabscalendar-calendarmodel.qml
deleted file mode 100644
index 31e944da..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-calendarmodel.qml
+++ /dev/null
@@ -1,30 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.calendar 1.0
-import Qt.labs.controls 1.0
-
-//! [1]
-ListView {
- id: listview
-
- width: 200; height: 200
- snapMode: ListView.SnapOneItem
- orientation: ListView.Horizontal
- highlightRangeMode: ListView.StrictlyEnforceRange
-
- model: CalendarModel {
- from: new Date(2015, 0, 1)
- to: new Date(2015, 11, 31)
- }
-
- delegate: MonthGrid {
- width: listview.width
- height: listview.height
-
- month: model.month
- year: model.year
- locale: Qt.locale("en_US")
- }
-
- ScrollIndicator.horizontal: ScrollIndicator { }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscalendar-dayofweekrow-layout.qml b/tests/auto/snippets/data/qtlabscalendar-dayofweekrow-layout.qml
deleted file mode 100644
index dc009c6a..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-dayofweekrow-layout.qml
+++ /dev/null
@@ -1,20 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.0
-import Qt.labs.calendar 1.0
-
-//! [1]
-ColumnLayout {
- DayOfWeekRow {
- locale: grid.locale
- Layout.fillWidth: true
- }
-
- MonthGrid {
- id: grid
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
- Layout.fillWidth: true
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscalendar-dayofweekrow.qml b/tests/auto/snippets/data/qtlabscalendar-dayofweekrow.qml
deleted file mode 100644
index 7d6f159f..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-dayofweekrow.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.calendar 1.0
-
-//! [1]
-DayOfWeekRow {
- locale: Qt.locale("en_US")
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscalendar-monthgrid-layout.qml b/tests/auto/snippets/data/qtlabscalendar-monthgrid-layout.qml
deleted file mode 100644
index 55c554f3..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-monthgrid-layout.qml
+++ /dev/null
@@ -1,34 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.0
-import Qt.labs.calendar 1.0
-
-//! [1]
-GridLayout {
- columns: 2
-
- DayOfWeekRow {
- locale: grid.locale
-
- Layout.column: 1
- Layout.fillWidth: true
- }
-
- WeekNumberColumn {
- month: grid.month
- year: grid.year
- locale: grid.locale
-
- Layout.fillHeight: true
- }
-
- MonthGrid {
- id: grid
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
-
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscalendar-monthgrid.qml b/tests/auto/snippets/data/qtlabscalendar-monthgrid.qml
deleted file mode 100644
index 84a8936b..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-monthgrid.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.calendar 1.0
-
-//! [1]
-MonthGrid {
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn-layout.qml b/tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn-layout.qml
deleted file mode 100644
index 05b77827..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn-layout.qml
+++ /dev/null
@@ -1,22 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.0
-import Qt.labs.calendar 1.0
-
-//! [1]
-RowLayout {
- WeekNumberColumn {
- month: grid.month
- year: grid.year
- locale: grid.locale
- Layout.fillHeight: true
- }
-
- MonthGrid {
- id: grid
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
- Layout.fillHeight: true
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn.qml b/tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn.qml
deleted file mode 100644
index 9570fe04..00000000
--- a/tests/auto/snippets/data/qtlabscalendar-weeknumbercolumn.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.calendar 1.0
-
-//! [1]
-WeekNumberColumn {
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-busyindicator-background.qml b/tests/auto/snippets/data/qtlabscontrols-busyindicator-background.qml
deleted file mode 100644
index 54d68234..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-busyindicator-background.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-BusyIndicator {
- background: Rectangle {
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-busyindicator-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-busyindicator-indicator.qml
deleted file mode 100644
index dffd61b6..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-busyindicator-indicator.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-BusyIndicator {
- Rectangle {
- anchors.fill: indicator
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-busyindicator.qml b/tests/auto/snippets/data/qtlabscontrols-busyindicator.qml
deleted file mode 100644
index 3234d010..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-busyindicator.qml
+++ /dev/null
@@ -1,5 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-BusyIndicator {
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button-background.qml b/tests/auto/snippets/data/qtlabscontrols-button-background.qml
deleted file mode 100644
index 287fe380..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button-background.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- width: 80
- text: "Button"
- Rectangle {
- anchors.fill: background
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-button-disabled.qml
deleted file mode 100644
index e2bd4fda..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button-disabled.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- width: 80
- text: "Disabled"
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button-focused.qml b/tests/auto/snippets/data/qtlabscontrols-button-focused.qml
deleted file mode 100644
index 7b006204..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button-focused.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- width: 80
- text: "Focused"
- focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button-label.qml b/tests/auto/snippets/data/qtlabscontrols-button-label.qml
deleted file mode 100644
index a068bcb2..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button-label.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- width: 80
- text: "Button"
- Rectangle {
- anchors.fill: label
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button-normal.qml b/tests/auto/snippets/data/qtlabscontrols-button-normal.qml
deleted file mode 100644
index fbb946f9..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button-normal.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- width: 80
- text: "Normal"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button-pressed.qml b/tests/auto/snippets/data/qtlabscontrols-button-pressed.qml
deleted file mode 100644
index 272f2e2c..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button-pressed.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- width: 80
- text: "Pressed"
- pressed: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-button.qml b/tests/auto/snippets/data/qtlabscontrols-button.qml
deleted file mode 100644
index e47de035..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-button.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Button {
- text: "Button"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-background.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-background.qml
deleted file mode 100644
index cea3fe70..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-background.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "CheckBox"
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-checked.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-checked.qml
deleted file mode 100644
index b0620f04..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-checked.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "Checked"
- checked: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-disabled.qml
deleted file mode 100644
index 6aa33095..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-disabled.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "Disabled"
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-focused.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-focused.qml
deleted file mode 100644
index efacc11d..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-focused.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "Focused"
- focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-indicator.qml
deleted file mode 100644
index f5dc9e9c..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-indicator.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "CheckBox"
- Rectangle {
- anchors.fill: indicator
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-label.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-label.qml
deleted file mode 100644
index 9ccb7756..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-label.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "CheckBox"
- Rectangle {
- anchors.fill: label
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox-normal.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox-normal.qml
deleted file mode 100644
index 6d1c23dc..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox-normal.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "Normal"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-checkbox.qml b/tests/auto/snippets/data/qtlabscontrols-checkbox.qml
deleted file mode 100644
index f1e25234..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-checkbox.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-CheckBox {
- text: "CheckBox"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-dial-background.qml b/tests/auto/snippets/data/qtlabscontrols-dial-background.qml
deleted file mode 100644
index 1f13eef6..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-dial-background.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Dial {
- Rectangle {
- anchors.fill: background
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-dial-handle.qml b/tests/auto/snippets/data/qtlabscontrols-dial-handle.qml
deleted file mode 100644
index afb30639..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-dial-handle.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Dial {
- id: dial
-
- Rectangle {
- parent: dial.handle
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- antialiasing: true
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-dial.qml b/tests/auto/snippets/data/qtlabscontrols-dial.qml
deleted file mode 100644
index 0883e393..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-dial.qml
+++ /dev/null
@@ -1,5 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Dial {
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-frame-background.qml b/tests/auto/snippets/data/qtlabscontrols-frame-background.qml
deleted file mode 100644
index eec63652..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-frame-background.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Frame {
- width: 100
- height: 100
- background: Rectangle {
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-frame-frame.qml b/tests/auto/snippets/data/qtlabscontrols-frame-frame.qml
deleted file mode 100644
index da68ab3c..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-frame-frame.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Frame {
- width: 100
- height: 100
- Rectangle {
- parent: frame
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-frame.qml b/tests/auto/snippets/data/qtlabscontrols-frame.qml
deleted file mode 100644
index 123f391c..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-frame.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.0
-import Qt.labs.controls 1.0
-
-//! [1]
-Frame {
- ColumnLayout {
- anchors.fill: parent
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-groupbox-background.qml b/tests/auto/snippets/data/qtlabscontrols-groupbox-background.qml
deleted file mode 100644
index 36359c9d..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-groupbox-background.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-GroupBox {
- width: 100
- height: 100
- title: "GroupBox"
- background: Rectangle {
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-groupbox-frame.qml b/tests/auto/snippets/data/qtlabscontrols-groupbox-frame.qml
deleted file mode 100644
index 89ae7392..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-groupbox-frame.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-GroupBox {
- width: 100
- height: 100
- title: "GroupBox"
- Rectangle {
- parent: frame
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-groupbox-label.qml b/tests/auto/snippets/data/qtlabscontrols-groupbox-label.qml
deleted file mode 100644
index 187e3985..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-groupbox-label.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-GroupBox {
- width: 100
- height: 100
- title: "GroupBox"
- Rectangle {
- parent: label
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-groupbox.qml b/tests/auto/snippets/data/qtlabscontrols-groupbox.qml
deleted file mode 100644
index e62dafd1..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-groupbox.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.0
-import Qt.labs.controls 1.0
-
-//! [1]
-GroupBox {
- title: qsTr("Synchronize")
- ColumnLayout {
- anchors.fill: parent
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-label-background.qml b/tests/auto/snippets/data/qtlabscontrols-label-background.qml
deleted file mode 100644
index 0281b4cd..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-label-background.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Label {
- text: "Label"
- background: Rectangle {
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-label.qml b/tests/auto/snippets/data/qtlabscontrols-label.qml
deleted file mode 100644
index 8ac6978a..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-label.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-//! [1]
-Label {
- text: "Label"
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-pageindicator.qml b/tests/auto/snippets/data/qtlabscontrols-pageindicator.qml
deleted file mode 100644
index 18000654..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-pageindicator.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-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-progressbar-background.qml b/tests/auto/snippets/data/qtlabscontrols-progressbar-background.qml
deleted file mode 100644
index c27ab436..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-progressbar-background.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ProgressBar {
- value: 0.5
- Rectangle {
- anchors.fill: background
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-progressbar-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-progressbar-disabled.qml
deleted file mode 100644
index 100203bd..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-progressbar-disabled.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ProgressBar {
- value: 0.5
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-progressbar-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-progressbar-indicator.qml
deleted file mode 100644
index 04cac6f2..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-progressbar-indicator.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ProgressBar {
- value: 0.5
- Rectangle {
- parent: indicator
- width: indicator.childrenRect.width
- height: indicator.height
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-progressbar-normal.qml b/tests/auto/snippets/data/qtlabscontrols-progressbar-normal.qml
deleted file mode 100644
index fd9de49d..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-progressbar-normal.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ProgressBar {
- value: 0.5
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-background.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-background.qml
deleted file mode 100644
index 02409c25..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-background.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "RadioButton"
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-checked.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-checked.qml
deleted file mode 100644
index 7cf298c7..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-checked.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "Checked"
- checked: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-disabled.qml
deleted file mode 100644
index 68893856..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-disabled.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "Disabled"
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-focused.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-focused.qml
deleted file mode 100644
index a454ba60..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-focused.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "Focused"
- focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-indicator.qml
deleted file mode 100644
index 06259e2f..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-indicator.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "RadioButton"
- Rectangle {
- anchors.fill: indicator
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-label.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-label.qml
deleted file mode 100644
index d761fdd4..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-label.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "RadioButton"
- Rectangle {
- anchors.fill: label
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton-normal.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton-normal.qml
deleted file mode 100644
index 6f659fb1..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton-normal.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "Normal"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-radiobutton.qml b/tests/auto/snippets/data/qtlabscontrols-radiobutton.qml
deleted file mode 100644
index bec1ab79..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-radiobutton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RadioButton {
- text: "RadioButton"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-background.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-background.qml
deleted file mode 100644
index 88a97a70..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-background.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-disabled.qml
deleted file mode 100644
index 648e283d..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-disabled.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle-focused.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle-focused.qml
deleted file mode 100644
index 03241df2..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle-focused.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- first.handle.focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle.qml
deleted file mode 100644
index a9a28d90..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-first-handle.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- Rectangle {
- anchors.fill: first.handle
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-normal.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-normal.qml
deleted file mode 100644
index 51cdacd2..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-normal.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle-focused.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle-focused.qml
deleted file mode 100644
index c820ed66..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle-focused.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- second.handle.focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle.qml
deleted file mode 100644
index 5edce3f1..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-second-handle.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- Rectangle {
- anchors.fill: second.handle
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider-track.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider-track.qml
deleted file mode 100644
index b39e7541..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider-track.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
- Rectangle {
- anchors.fill: track
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-rangeslider.qml b/tests/auto/snippets/data/qtlabscontrols-rangeslider.qml
deleted file mode 100644
index 51cdacd2..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-rangeslider.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-RangeSlider {
- first.value: 0.25
- second.value: 0.75
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollbar-background.qml b/tests/auto/snippets/data/qtlabscontrols-scrollbar-background.qml
deleted file mode 100644
index 21020f3d..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-scrollbar-background.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ScrollBar {
- size: 0.5
- position: 0.5
- active: true
- height: 100
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollbar-handle.qml b/tests/auto/snippets/data/qtlabscontrols-scrollbar-handle.qml
deleted file mode 100644
index 12ff8b10..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-scrollbar-handle.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ScrollBar {
- size: 0.5
- position: 0.5
- active: true
- height: 100
- Rectangle {
- parent: handle
- anchors.fill: parent
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollbar.qml b/tests/auto/snippets/data/qtlabscontrols-scrollbar.qml
deleted file mode 100644
index 9de22a66..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-scrollbar.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-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
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollindicator-background.qml b/tests/auto/snippets/data/qtlabscontrols-scrollindicator-background.qml
deleted file mode 100644
index 991751af..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-scrollindicator-background.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ScrollIndicator {
- size: 0.5
- position: 0.5
- active: true
- height: 100
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollindicator-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-scrollindicator-indicator.qml
deleted file mode 100644
index e615ea33..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-scrollindicator-indicator.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ScrollIndicator {
- size: 0.5
- position: 0.5
- active: true
- height: 100
- Rectangle {
- parent: indicator
- anchors.fill: parent
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml b/tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml
deleted file mode 100644
index dff23c2a..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-scrollindicator.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-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
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider-background.qml b/tests/auto/snippets/data/qtlabscontrols-slider-background.qml
deleted file mode 100644
index d6344f72..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider-background.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-slider-disabled.qml
deleted file mode 100644
index 57053ce6..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider-disabled.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider-focused.qml b/tests/auto/snippets/data/qtlabscontrols-slider-focused.qml
deleted file mode 100644
index d2f7fd09..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider-focused.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
- focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider-handle.qml b/tests/auto/snippets/data/qtlabscontrols-slider-handle.qml
deleted file mode 100644
index 9e578207..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider-handle.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
- Rectangle {
- anchors.fill: handle
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider-normal.qml b/tests/auto/snippets/data/qtlabscontrols-slider-normal.qml
deleted file mode 100644
index 8467aa59..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider-normal.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider-track.qml b/tests/auto/snippets/data/qtlabscontrols-slider-track.qml
deleted file mode 100644
index 3a85f46e..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider-track.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
- Rectangle {
- anchors.fill: track
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-slider.qml b/tests/auto/snippets/data/qtlabscontrols-slider.qml
deleted file mode 100644
index 8467aa59..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-slider.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Slider {
- value: 0.5
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-spinbox-background.qml b/tests/auto/snippets/data/qtlabscontrols-spinbox-background.qml
deleted file mode 100644
index 65545970..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-spinbox-background.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-SpinBox {
- value: 50
- Rectangle {
- anchors.fill: parent
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-spinbox-contentItem.qml b/tests/auto/snippets/data/qtlabscontrols-spinbox-contentItem.qml
deleted file mode 100644
index e0fb39f4..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-spinbox-contentItem.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-SpinBox {
- value: 50
- Rectangle {
- anchors.fill: contentItem
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-spinbox-down.qml b/tests/auto/snippets/data/qtlabscontrols-spinbox-down.qml
deleted file mode 100644
index b6e78c83..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-spinbox-down.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-SpinBox {
- value: 50
- Rectangle {
- anchors.fill: down.indicator
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-spinbox-textual.qml b/tests/auto/snippets/data/qtlabscontrols-spinbox-textual.qml
deleted file mode 100644
index cdcbc1bc..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-spinbox-textual.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-//! [1]
-SpinBox {
- from: 0
- to: items.length - 1
- value: 1 // "Medium"
-
- property var items: ["Small", "Medium", "Large"]
-
- validator: RegExpValidator {
- regExp: new RegExp("(Small|Medium|Large)", "i")
- }
-
- textFromValue: function(value) {
- return items[value];
- }
-
- valueFromText: function(text) {
- for (var i = 0; i < items.length; ++i) {
- if (items[i].toLowerCase().indexOf(text.toLowerCase()) === 0)
- return i
- }
- return sb.value
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-spinbox-up.qml b/tests/auto/snippets/data/qtlabscontrols-spinbox-up.qml
deleted file mode 100644
index 6f150b56..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-spinbox-up.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-SpinBox {
- value: 50
- Rectangle {
- anchors.fill: up.indicator
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-spinbox.qml b/tests/auto/snippets/data/qtlabscontrols-spinbox.qml
deleted file mode 100644
index 588dce65..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-spinbox.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-//! [1]
-SpinBox {
- value: 50
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml
deleted file mode 100644
index 530df68e..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-swipeview-indicator.qml
+++ /dev/null
@@ -1,36 +0,0 @@
-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/data/qtlabscontrols-switch-background.qml b/tests/auto/snippets/data/qtlabscontrols-switch-background.qml
deleted file mode 100644
index 34342187..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-background.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Switch"
- background: Rectangle {
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch-checked.qml b/tests/auto/snippets/data/qtlabscontrols-switch-checked.qml
deleted file mode 100644
index 6c82fae3..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-checked.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Checked"
- checked: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-switch-disabled.qml
deleted file mode 100644
index 3ebc5d72..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-disabled.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Disabled"
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch-focused.qml b/tests/auto/snippets/data/qtlabscontrols-switch-focused.qml
deleted file mode 100644
index fc3564f2..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-focused.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Focused"
- focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch-indicator.qml b/tests/auto/snippets/data/qtlabscontrols-switch-indicator.qml
deleted file mode 100644
index f3d01aba..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-indicator.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Switch"
- Rectangle {
- anchors.fill: indicator
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch-label.qml b/tests/auto/snippets/data/qtlabscontrols-switch-label.qml
deleted file mode 100644
index 54e41ef7..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-label.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Switch"
- Rectangle {
- anchors.fill: label
- color: "transparent"
- border.color: "red"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch-normal.qml b/tests/auto/snippets/data/qtlabscontrols-switch-normal.qml
deleted file mode 100644
index 75400351..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch-normal.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Normal"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-switch.qml b/tests/auto/snippets/data/qtlabscontrols-switch.qml
deleted file mode 100644
index 8872437f..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-switch.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Switch {
- text: "Switch"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-tabbar.qml b/tests/auto/snippets/data/qtlabscontrols-tabbar.qml
deleted file mode 100644
index 5a1e5c4e..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-tabbar.qml
+++ /dev/null
@@ -1,37 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.3
-import Qt.labs.controls 1.0
-
-Column {
- width: 300
-
- //! [1]
- TabBar {
- id: bar
- width: parent.width
- TabButton {
- text: qsTr("Home")
- }
- TabButton {
- text: qsTr("Discover")
- }
- TabButton {
- text: qsTr("Activity")
- }
- }
-
- StackLayout {
- width: parent.width
- currentIndex: bar.currentIndex
- Item {
- id: homeTab
- }
- Item {
- id: discoverTab
- }
- Item {
- id: activityTab
- }
- }
- //! [1]
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-tabbutton.qml b/tests/auto/snippets/data/qtlabscontrols-tabbutton.qml
deleted file mode 100644
index d2536e66..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-tabbutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-//! [1]
-TabBar {
- TabButton {
- text: qsTr("Home")
- }
- TabButton {
- text: qsTr("Discover")
- }
- TabButton {
- text: qsTr("Activity")
- }
-}
-//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-textarea.qml b/tests/auto/snippets/data/qtlabscontrols-textarea.qml
deleted file mode 100644
index 5fc141a7..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-textarea.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-TextArea {
- text: "Text\nArea..."
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-textfield-background.qml b/tests/auto/snippets/data/qtlabscontrols-textfield-background.qml
deleted file mode 100644
index 6fcc3391..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-textfield-background.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-TextField {
- width: 80
- text: "TextField"
- Rectangle {
- anchors.fill: background
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-textfield-disabled.qml b/tests/auto/snippets/data/qtlabscontrols-textfield-disabled.qml
deleted file mode 100644
index bec044f7..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-textfield-disabled.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-TextField {
- width: 80
- text: "Disabled"
- enabled: false
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-textfield-focused.qml b/tests/auto/snippets/data/qtlabscontrols-textfield-focused.qml
deleted file mode 100644
index 7983e104..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-textfield-focused.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-TextField {
- width: 80
- text: "Focused"
- focus: true
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-textfield-normal.qml b/tests/auto/snippets/data/qtlabscontrols-textfield-normal.qml
deleted file mode 100644
index 81b18874..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-textfield-normal.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-TextField {
- width: 80
- text: "Normal"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-textfield.qml b/tests/auto/snippets/data/qtlabscontrols-textfield.qml
deleted file mode 100644
index 11e8f3aa..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-textfield.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-TextField {
- text: "TextField"
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbar-background.qml b/tests/auto/snippets/data/qtlabscontrols-toolbar-background.qml
deleted file mode 100644
index d9cc05c9..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-toolbar-background.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ToolBar {
- width: 100
- Rectangle {
- parent: background
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbar-frame.qml b/tests/auto/snippets/data/qtlabscontrols-toolbar-frame.qml
deleted file mode 100644
index 2a064bd6..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-toolbar-frame.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ToolBar {
- width: 100
- frame: Rectangle {
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbar.qml b/tests/auto/snippets/data/qtlabscontrols-toolbar.qml
deleted file mode 100644
index 305321d3..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-toolbar.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Layouts 1.0
-import Qt.labs.controls 1.0
-
-ToolBar {
- RowLayout {
- anchors.fill: parent
- ToolButton {
- text: qsTr("\u25C0 Qt")
- onClicked: stack.pop()
- }
- Item { Layout.fillWidth: true }
- Switch {
- checked: true
- text: qsTr("Notifications")
- }
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbutton-background.qml b/tests/auto/snippets/data/qtlabscontrols-toolbutton-background.qml
deleted file mode 100644
index 8a1f8474..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-toolbutton-background.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ToolButton {
- text: "ToolButton"
- Rectangle {
- anchors.fill: background
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbutton-label.qml b/tests/auto/snippets/data/qtlabscontrols-toolbutton-label.qml
deleted file mode 100644
index 6872b38c..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-toolbutton-label.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ToolButton {
- text: "ToolButton"
- Rectangle {
- anchors.fill: label
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbutton.qml b/tests/auto/snippets/data/qtlabscontrols-toolbutton.qml
deleted file mode 100644
index 8a37bd63..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-toolbutton.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-ToolBar {
- ToolButton {
- text: "ToolButton"
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-tumbler-background.qml b/tests/auto/snippets/data/qtlabscontrols-tumbler-background.qml
deleted file mode 100644
index 02b8a2f9..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-tumbler-background.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Tumbler {
- model: 5
-
- Rectangle {
- anchors.fill: parent
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-tumbler-contentItem.qml b/tests/auto/snippets/data/qtlabscontrols-tumbler-contentItem.qml
deleted file mode 100644
index 6ef5099c..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-tumbler-contentItem.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Tumbler {
- model: 5
-
- Rectangle {
- anchors.fill: parent.contentItem
- color: 'transparent'
- border.color: 'red'
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-tumbler-delegate.qml b/tests/auto/snippets/data/qtlabscontrols-tumbler-delegate.qml
deleted file mode 100644
index 593e7302..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-tumbler-delegate.qml
+++ /dev/null
@@ -1,20 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Tumbler {
- id: tumbler
- model: 5
-
- Column {
- Repeater {
- model: 3
-
- Rectangle {
- width: tumbler.contentItem.width
- height: tumbler.contentItem.height / 3
- color: 'transparent'
- border.color: 'red'
- }
- }
- }
-}
diff --git a/tests/auto/snippets/data/qtlabscontrols-tumbler.qml b/tests/auto/snippets/data/qtlabscontrols-tumbler.qml
deleted file mode 100644
index 5edb9617..00000000
--- a/tests/auto/snippets/data/qtlabscontrols-tumbler.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import Qt.labs.controls 1.0
-
-Tumbler {
- model: 5
-}
diff --git a/tests/auto/snippets/snippets.pro b/tests/auto/snippets/snippets.pro
index f61e801d..3147fb4b 100644
--- a/tests/auto/snippets/snippets.pro
+++ b/tests/auto/snippets/snippets.pro
@@ -5,6 +5,8 @@ QT += quick testlib
CONFIG += testcase
osx:CONFIG -= app_bundle
+DEFINES += QQC2_SNIPPETS_PATH=\\\"$$QQC2_SOURCE_TREE/src/imports/controls/doc/snippets\\\"
+
SOURCES += \
$$PWD/tst_snippets.cpp
diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp
index f7191724..de9aa281 100644
--- a/tests/auto/snippets/tst_snippets.cpp
+++ b/tests/auto/snippets/tst_snippets.cpp
@@ -59,12 +59,12 @@ void tst_Snippets::initTestCase()
QDir outdir(QDir::current().filePath("screenshots"));
QVERIFY(outdir.exists() || QDir::current().mkpath("screenshots"));
- QString datadir = QFINDTESTDATA("data");
+ QString datadir(QQC2_SNIPPETS_PATH);
QVERIFY(!datadir.isEmpty());
qInfo() << datadir;
- QDirIterator it(datadir, QStringList() << "*.qml", QDir::Files | QDir::Readable, QDirIterator::Subdirectories);
+ QDirIterator it(datadir, QStringList() << "qtlabs*.qml", QDir::Files | QDir::Readable, QDirIterator::Subdirectories);
while (it.hasNext()) {
QFileInfo fi(it.next());
filePaths.insert(fi.baseName(), qMakePair(fi.filePath(), outdir.filePath(fi.baseName() + ".png")));