aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativerepeater/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativerepeater/data')
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml29
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml68
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/modelChanged.qml26
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/objlist.qml21
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/properties.qml11
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/repeater1.qml28
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/repeater2.qml36
7 files changed, 0 insertions, 219 deletions
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml
deleted file mode 100644
index 85e1608bbf..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml
+++ /dev/null
@@ -1,29 +0,0 @@
-import QtQuick 1.0
-
-Rectangle {
- id: container
- objectName: "container"
- width: 240
- height: 320
- color: "white"
-
- function checkProperties() {
- testObject.error = false;
- if (repeater.delegate != comp) {
- console.log("delegate property incorrect");
- testObject.error = true;
- }
- }
-
- Component {
- id: comp
- Item{}
- }
-
- Repeater {
- id: repeater
- objectName: "repeater"
- model: testData
- delegate: comp
- }
-}
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml
deleted file mode 100644
index 590a9cd194..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-// This example demonstrates placing items in a view using
-// a VisualItemModel
-
-import QtQuick 1.0
-
-Rectangle {
- id: root
- color: "lightgray"
- width: 240
- height: 320
- property variant itemModel: itemModel1
-
- function checkProperties() {
- testObject.error = false;
- if (testObject.useModel && view.model != root.itemModel) {
- console.log("model property incorrect");
- testObject.error = true;
- }
- }
-
- function switchModel() {
- root.itemModel = itemModel2
- }
-
- VisualItemModel {
- id: itemModel1
- objectName: "itemModel1"
- Rectangle {
- objectName: "item1"
- height: 50; width: 100; color: "#FFFEF0"
- Text { objectName: "text1"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- Rectangle {
- objectName: "item2"
- height: 50; width: 100; color: "#F0FFF7"
- Text { objectName: "text2"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- Rectangle {
- objectName: "item3"
- height: 50; width: 100; color: "#F4F0FF"
- Text { objectName: "text3"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- }
-
- VisualItemModel {
- id: itemModel2
- objectName: "itemModel2"
- Rectangle {
- objectName: "item4"
- height: 50; width: 100; color: "#FFFEF0"
- Text { objectName: "text4"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- Rectangle {
- objectName: "item5"
- height: 50; width: 100; color: "#F0FFF7"
- Text { objectName: "text5"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- }
-
- Column {
- objectName: "container"
- Repeater {
- id: view
- objectName: "repeater"
- model: testObject.useModel ? root.itemModel : 0
- }
- }
-}
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/modelChanged.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/modelChanged.qml
deleted file mode 100644
index 0b57d50b6f..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/modelChanged.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-import QtQuick 1.1
-
-Column {
- Repeater {
- id: repeater
- objectName: "repeater"
-
- property int itemsCount
- property variant itemsFound: []
-
- delegate: Rectangle {
- color: "red"
- width: (index+1)*50
- height: 50
- }
-
- onModelChanged: {
- repeater.itemsCount = repeater.count
- var items = []
- for (var i=0; i<repeater.count; i++)
- items.push(repeater.itemAt(i))
- repeater.itemsFound = items
- }
- }
-}
-
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/objlist.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/objlist.qml
deleted file mode 100644
index b47b04237c..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/objlist.qml
+++ /dev/null
@@ -1,21 +0,0 @@
-import QtQuick 1.0
-
-Rectangle {
- id: container
- objectName: "container"
- width: 240
- height: 320
- color: "white"
- Repeater {
- id: repeater
- objectName: "repeater"
- model: testData
- property int errors: 0
- property int instantiated: 0
- Component {
- Item{
- Component.onCompleted: {if(index!=modelData.idx) repeater.errors += 1; repeater.instantiated++}
- }
- }
- }
-}
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/properties.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/properties.qml
deleted file mode 100644
index 689a103082..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/properties.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 1.0
-
-Row {
- Repeater {
- objectName: "repeater"
- model: 5
- Text {
- text: "I'm item " + index
- }
- }
-}
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/repeater1.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/repeater1.qml
deleted file mode 100644
index 2456b6d75d..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/repeater1.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick 1.0
-
-Rectangle {
- id: container
- objectName: "container"
- width: 240
- height: 320
- color: "white"
- Text {
- text: "Zero"
- }
- Repeater {
- id: repeater
- objectName: "repeater"
- width: 240
- height: 320
- model: testData
- Component {
- Text {
- y: index*20
- text: modelData
- }
- }
- }
- Text {
- text: "Last"
- }
-}
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/repeater2.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/repeater2.qml
deleted file mode 100644
index 02ef81033c..0000000000
--- a/tests/auto/qtquick1/qdeclarativerepeater/data/repeater2.qml
+++ /dev/null
@@ -1,36 +0,0 @@
-import QtQuick 1.0
-
-Rectangle {
- width: 240
- height: 320
- color: "white"
- Component {
- id: myDelegate
- Item {
- objectName: "myDelegate"
- height: 20
- width: 240
- Text {
- objectName: "myName"
- text: name
- }
- Text {
- objectName: "myNumber"
- x: 100
- text: number
- }
- }
- }
- Column {
- id: container
- objectName: "container"
- Repeater {
- id: repeater
- objectName: "repeater"
- width: 240
- height: 320
- delegate: myDelegate
- model: testData
- }
- }
-}