aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-01-31 16:52:36 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-03 00:39:18 +0100
commit01dc7e2ea476e0e6dcdce2e72979bbc858f4057d (patch)
treed8796f7695bbf8ad42abf47cd84c1b5e000ef795 /tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml
parent5e07b57b818326da47a46d384415041fa4cea0ba (diff)
Remove QtQuick1 elements from qtdeclarative
QtQuick1 is now contained in a separate repository. Task-number: QTBUG-23737 Change-Id: I09eae67af5693a22b896b916f816f73ccc3a89b1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml')
-rw-r--r--tests/auto/qtquick1/qdeclarativerepeater/data/itemlist.qml68
1 files changed, 0 insertions, 68 deletions
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
- }
- }
-}