aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickgridview/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickgridview/data')
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/ComponentView.qml14
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/addTransitions.qml129
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/asyncloader.qml36
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/attachedSignals.qml27
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/creationContext.qml5
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/displaygrid.qml39
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/footer.qml48
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview-enforcerange.qml58
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview-initCurrent.qml66
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview-noCurrent.qml52
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview1.qml69
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview2.qml26
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview3.qml6
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/gridview4.qml11
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/header.qml40
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/manual-highlight.qml48
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/margins.qml55
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/mirroring.qml43
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/moveTransitions.qml143
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/multipleTransitions.qml123
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/populateTransitions.qml103
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/propertychangestest.qml69
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/removeTransitions.qml146
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/resizeview.qml25
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/setindex.qml29
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/snapOneRow.qml49
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/snapToRow.qml49
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/unaligned.qml15
-rw-r--r--tests/auto/qtquick2/qquickgridview/data/unrequestedItems.qml71
29 files changed, 0 insertions, 1594 deletions
diff --git a/tests/auto/qtquick2/qquickgridview/data/ComponentView.qml b/tests/auto/qtquick2/qquickgridview/data/ComponentView.qml
deleted file mode 100644
index 12ab6c92d1..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/ComponentView.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.0
-
-GridView {
- id: view
-
- property string title
-
- width: 100; height: 100;
-
- model: 1
- delegate: Text { objectName: "listItem"; text: view.title }
- header: Text { objectName: "header"; text: view.title }
- footer: Text { objectName: "footer"; text: view.title }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/addTransitions.qml b/tests/auto/qtquick2/qquickgridview/data/addTransitions.qml
deleted file mode 100644
index faea02a50d..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/addTransitions.qml
+++ /dev/null
@@ -1,129 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 550
- height: 600
-
- property int duration: 10
- property int count: grid.count
-
- Component {
- id: myDelegate
-
- Rectangle {
- id: wrapper
-
- property string nameData: name
-
- objectName: "wrapper"
- width: 80
- height: 60
- border.width: 1
- Column {
- Text { text: index }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- id: textName
- objectName: "textName"
- text: name
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
-
- onXChanged: checkPos()
- onYChanged: checkPos()
-
- function checkPos() {
- if (Qt.point(x, y) == targetItems_transitionFrom)
- model_targetItems_transitionFrom.addItem(name, "")
- if (Qt.point(x, y) == displacedItems_transitionVia)
- model_displacedItems_transitionVia.addItem(name, "")
- }
- }
- }
-
- GridView {
- id: grid
-
- property int targetTransitionsDone
- property int displaceTransitionsDone
-
- property var targetTrans_items: new Object()
- property var targetTrans_targetIndexes: new Array()
- property var targetTrans_targetItems: new Array()
-
- property var displacedTrans_items: new Object()
- property var displacedTrans_targetIndexes: new Array()
- property var displacedTrans_targetItems: new Array()
-
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- anchors.centerIn: parent
- model: testModel
- delegate: myDelegate
-
- // for QDeclarativeListProperty types
- function copyList(propList) {
- var temp = new Array()
- for (var i=0; i<propList.length; i++)
- temp.push(propList[i])
- return temp
- }
-
- add: Transition {
- id: targetTransition
-
- SequentialAnimation {
- ScriptAction {
- script: {
- grid.targetTrans_items[targetTransition.ViewTransition.item.nameData] = targetTransition.ViewTransition.index
- grid.targetTrans_targetIndexes.push(targetTransition.ViewTransition.targetIndexes)
- grid.targetTrans_targetItems.push(grid.copyList(targetTransition.ViewTransition.targetItems))
- }
- }
- ParallelAnimation {
- NumberAnimation { properties: "x"; from: targetItems_transitionFrom.x; duration: root.duration }
- NumberAnimation { properties: "y"; from: targetItems_transitionFrom.y; duration: root.duration }
- }
-
- ScriptAction { script: grid.targetTransitionsDone += 1 }
- }
- }
-
- addDisplaced: Transition {
- id: displaced
-
- SequentialAnimation {
- ScriptAction {
- script: {
- grid.displacedTrans_items[displaced.ViewTransition.item.nameData] = displaced.ViewTransition.index
- grid.displacedTrans_targetIndexes.push(displaced.ViewTransition.targetIndexes)
- grid.displacedTrans_targetItems.push(grid.copyList(displaced.ViewTransition.targetItems))
- }
- }
- ParallelAnimation {
- NumberAnimation { properties: "x"; duration: root.duration; to: displacedItems_transitionVia.x }
- NumberAnimation { properties: "y"; duration: root.duration; to: displacedItems_transitionVia.y }
- }
- NumberAnimation { properties: "x,y"; duration: root.duration }
-
- ScriptAction { script: grid.displaceTransitionsDone += 1 }
- }
-
- }
- }
-
- Rectangle {
- anchors.fill: grid
- color: "lightsteelblue"
- opacity: 0.2
- }
-}
-
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/asyncloader.qml b/tests/auto/qtquick2/qquickgridview/data/asyncloader.qml
deleted file mode 100644
index ab66f20a1e..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/asyncloader.qml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 300; height: 400
- color: "#2200FF00"
-
- Loader {
- asynchronous: true
- sourceComponent: viewComp
- anchors.fill: parent
- }
-
- Component {
- id: viewComp
- GridView {
- objectName: "view"
- width: 300; height: 400
- model: 40
- delegate: aDelegate
-
- highlight: Rectangle { color: "lightsteelblue" }
- }
- }
- // The delegate for each list
- Component {
- id: aDelegate
- Item {
- objectName: "wrapper"
- width: 100
- height: 100
- Text { text: 'Index: ' + index }
- }
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/attachedSignals.qml b/tests/auto/qtquick2/qquickgridview/data/attachedSignals.qml
deleted file mode 100644
index 73c10d8caf..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/attachedSignals.qml
+++ /dev/null
@@ -1,27 +0,0 @@
-import QtQuick 2.0
-
-GridView {
- id: view
- width: 240; height: 320
-
- property variant addedDelegates: []
- property int removedDelegateCount
-
- model: testModel
-
- cellWidth: delegateWidth; cellHeight: delegateHeight
-
- delegate: Rectangle {
- width: delegateWidth; height: delegateHeight
- border.width: 1
- GridView.onAdd: {
- var obj = GridView.view.addedDelegates
- obj.push(model.name)
- GridView.view.addedDelegates = obj
- }
- GridView.onRemove: {
- view.removedDelegateCount += 1
- }
- }
-}
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/creationContext.qml b/tests/auto/qtquick2/qquickgridview/data/creationContext.qml
deleted file mode 100644
index 79a682788b..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/creationContext.qml
+++ /dev/null
@@ -1,5 +0,0 @@
-import QtQuick 2.0
-
-ComponentView {
- title: "Hello!"
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/displaygrid.qml b/tests/auto/qtquick2/qquickgridview/data/displaygrid.qml
deleted file mode 100644
index 1da4fe50ac..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/displaygrid.qml
+++ /dev/null
@@ -1,39 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- width: 240
- height: 320
- color: "#ffffff"
- resources: [
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.color: "blue"
- Text {
- text: index
- }
- Text {
- y: 20
- id: displayText
- objectName: "displayText"
- text: display
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
- ]
- GridView {
- id: grid
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- model: testModel
- delegate: myDelegate
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/footer.qml b/tests/auto/qtquick2/qquickgridview/data/footer.qml
deleted file mode 100644
index 9083f9f57c..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/footer.qml
+++ /dev/null
@@ -1,48 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- property bool showHeader: false
-
- function changeFooter() {
- grid.footer = footer2
- }
- width: 240
- height: 320
- color: "#ffffff"
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.color: "blue"
- Text {
- text: index
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
- Component {
- id: headerComponent
- Text { objectName: "header"; text: "Header " + x + "," + y; width: 100; height: 30 }
- }
-
- GridView {
- id: grid
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- model: testModel
- delegate: myDelegate
- header: parent.showHeader ? headerComponent : null
- footer: Text { objectName: "footer"; text: "Footer " + x + "," + y; width: 100; height: 30 }
- }
-
- Component {
- id: footer2
- Text { objectName: "footer2"; text: "Footer 2" + x + "," + y; width: 50; height: 20 }
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview-enforcerange.qml b/tests/auto/qtquick2/qquickgridview/data/gridview-enforcerange.qml
deleted file mode 100644
index 2bfe7da78e..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview-enforcerange.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- width: 240
- height: 320
- color: "#ffffff"
- Component {
- id: myDelegate
- Item {
- id: wrapper
- objectName: "wrapper"
- height: 100
- width: 100
- Text {
- text: index
- }
- Text {
- y: 25
- id: textName
- objectName: "textName"
- text: name
- }
- Text {
- y: 50
- id: textNumber
- objectName: "textNumber"
- text: number
- }
- Text {
- y: 75
- text: wrapper.y
- }
- }
- }
-
- Component {
- id: myHighlight
- Rectangle {
- color: "lightsteelblue"
- }
- }
-
- GridView {
- id: grid
- objectName: "grid"
- width: 240
- height: 320
- model: testModel
- delegate: myDelegate
- highlight: myHighlight
- flow: (testTopToBottom == true) ? GridView.TopToBottom : GridView.LeftToRight
- layoutDirection: (testRightToLeft == true) ? Qt.RightToLeft : Qt.LeftToRight
- preferredHighlightBegin: 100
- preferredHighlightEnd: 100
- highlightRangeMode: "StrictlyEnforceRange"
- focus: true
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview-initCurrent.qml b/tests/auto/qtquick2/qquickgridview/data/gridview-initCurrent.qml
deleted file mode 100644
index 624f639962..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview-initCurrent.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
-
- property int current: grid.currentIndex
- property bool showHeader: false
- property bool showFooter: false
-
- width: 240
- height: 320
- color: "#ffffff"
- resources: [
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.color: "blue"
- Text {
- text: index
- }
- Text {
- x: 40
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- y: 20
- id: textName
- objectName: "textName"
- text: name
- }
- Text {
- y: 40
- id: textNumber
- objectName: "textNumber"
- text: number
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
- ]
-
- Component {
- id: headerFooter
- Rectangle { height: 30; width: 240; color: "blue" }
- }
-
- GridView {
- id: grid
- objectName: "grid"
- focus: true
- width: 240
- height: 320
- currentIndex: 35
- cellWidth: 80
- cellHeight: 60
- delegate: myDelegate
- highlightMoveDuration: 400
- model: testModel
- header: root.showHeader ? headerFooter : null
- footer: root.showFooter ? headerFooter : null
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview-noCurrent.qml b/tests/auto/qtquick2/qquickgridview/data/gridview-noCurrent.qml
deleted file mode 100644
index 600716e2d4..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview-noCurrent.qml
+++ /dev/null
@@ -1,52 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- property int current: grid.currentIndex
- width: 240
- height: 320
- color: "#ffffff"
- resources: [
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.color: "blue"
- Text {
- text: index
- }
- Text {
- x: 40
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- y: 20
- id: textName
- objectName: "textName"
- text: name
- }
- Text {
- y: 40
- id: textNumber
- objectName: "textNumber"
- text: number
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
- ]
- GridView {
- id: grid
- objectName: "grid"
- focus: true
- width: 240
- height: 320
- currentIndex: -1
- cellWidth: 80
- cellHeight: 60
- delegate: myDelegate
- model: testModel
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview1.qml b/tests/auto/qtquick2/qquickgridview/data/gridview1.qml
deleted file mode 100644
index 4bf6f0b952..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview1.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- property int count: grid.count
- property bool showHeader: false
- property bool showFooter: false
- property real cacheBuffer: 0
- property int added: -1
- property variant removed
-
- width: 240
- height: 320
- color: "#ffffff"
- resources: [
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.color: "blue"
- property string name: model.name
- Text {
- text: index
- }
- Text {
- x: 40
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- y: 20
- id: textName
- objectName: "textName"
- text: name
- }
- Text {
- y: 40
- id: textNumber
- objectName: "textNumber"
- text: number
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- GridView.onAdd: root.added = index
- GridView.onRemove: root.removed = name
- }
- },
- Component {
- id: headerFooter
- Rectangle { width: 30; height: 320; color: "blue" }
- }
- ]
- GridView {
- id: grid
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- flow: (testTopToBottom == false) ? GridView.LeftToRight : GridView.TopToBottom
- layoutDirection: (testRightToLeft == true) ? Qt.RightToLeft : Qt.LeftToRight
- model: testModel
- delegate: myDelegate
- header: root.showHeader ? headerFooter : null
- footer: root.showFooter ? headerFooter : null
- cacheBuffer: root.cacheBuffer
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview2.qml b/tests/auto/qtquick2/qquickgridview/data/gridview2.qml
deleted file mode 100644
index 5fb45a1613..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview2.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-import QtQuick 2.0
-
-GridView {
- anchors.fill: parent
- width: 320; height: 200
- cellWidth: 100; cellHeight: 100; cacheBuffer: 200; focus: true
- keyNavigationWraps: true; highlightFollowsCurrentItem: false
-
- model: ListModel {
- id: appModel
- ListElement { lColor: "red" }
- ListElement { lColor: "yellow" }
- ListElement { lColor: "green" }
- ListElement { lColor: "blue" }
- }
-
- delegate: Item {
- width: 100; height: 100
- Rectangle {
- color: lColor; x: 4; y: 4
- width: 92; height: 92
- }
- }
-
- highlight: Rectangle { width: 100; height: 100; color: "black" }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview3.qml b/tests/auto/qtquick2/qquickgridview/data/gridview3.qml
deleted file mode 100644
index a8c1c5a0f7..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview3.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-
-GridView {
- anchors.fill: parent
- width: 320; height: 200
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/gridview4.qml b/tests/auto/qtquick2/qquickgridview/data/gridview4.qml
deleted file mode 100644
index eed3a2bdb1..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/gridview4.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.0
-
-GridView {
- width: 405
- height: 200
- cellWidth: width/9
- cellHeight: height/2
-
- model: 18
- delegate: Rectangle { objectName: "delegate"; width: 10; height: 10; color: "green" }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/header.qml b/tests/auto/qtquick2/qquickgridview/data/header.qml
deleted file mode 100644
index 648e2a2298..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/header.qml
+++ /dev/null
@@ -1,40 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- function changeHeader() {
- grid.header = header2
- }
- width: 240
- height: 320
- color: "#ffffff"
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.color: "blue"
- Text {
- text: index
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
- GridView {
- id: grid
- objectName: "grid"
- width: initialViewWidth
- height: initialViewHeight
- cellWidth: 80
- cellHeight: 60
- model: testModel
- delegate: myDelegate
- header: Text { objectName: "header"; text: "Header " + x + "," + y; width: 100; height: 30 }
- }
-
- Component {
- id: header2
- Text { objectName: "header2"; text: "Header 2 " + x + "," + y; width: 50; height: 20 }
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/manual-highlight.qml b/tests/auto/qtquick2/qquickgridview/data/manual-highlight.qml
deleted file mode 100644
index c2f1d20fb1..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/manual-highlight.qml
+++ /dev/null
@@ -1,48 +0,0 @@
-import QtQuick 2.0
-
-Item {
-
- ListModel {
- id: model
- ListElement {
- name: "Bill Smith"
- number: "555 3264"
- }
- ListElement {
- name: "John Brown"
- number: "555 8426"
- }
- ListElement {
- name: "Sam Wise"
- number: "555 0473"
- }
- ListElement {
- name: "Bob Brown"
- number: "555 5845"
- }
- }
-
- Component {
- id: highlight
- Rectangle {
- objectName: "highlight"
- width: 80; height: 80
- color: "lightsteelblue"; radius: 5
- y: grid.currentItem.y+5
- x: grid.currentItem.x+5
- }
- }
-
- GridView {
- id: grid
- objectName: "grid"
- anchors.fill: parent
- model: model
- delegate: Text { objectName: "wrapper"; text: name; width: 80; height: 80 }
-
- highlight: highlight
- highlightFollowsCurrentItem: false
- focus: true
- }
-
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/margins.qml b/tests/auto/qtquick2/qquickgridview/data/margins.qml
deleted file mode 100644
index d369658a91..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/margins.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
-
- width: 240
- height: 320
- color: "#ffffff"
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 100
- height: 80
- border.color: "blue"
- property string name: model.name
- Text {
- text: index
- }
- Text {
- x: 40
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- y: 20
- id: textName
- objectName: "textName"
- text: name
- }
- Text {
- y: 40
- id: textNumber
- objectName: "textNumber"
- text: number
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
- GridView {
- id: grid
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 100
- cellHeight: 80
- leftMargin: 30
- rightMargin: 50
- flow: GridView.TopToBottom
- layoutDirection: (testRightToLeft == true) ? Qt.RightToLeft : Qt.LeftToRight
- model: testModel
- delegate: myDelegate
- }
- Text { anchors.bottom: parent.bottom; text: grid.contentX }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/mirroring.qml b/tests/auto/qtquick2/qquickgridview/data/mirroring.qml
deleted file mode 100644
index b9aff501c1..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/mirroring.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-// This example demonstrates how item positioning
-// changes in right-to-left layout direction
-
-import QtQuick 2.0
-
-Rectangle {
- color: "lightgray"
- width: 340
- height: 370
-
- VisualItemModel {
- id: itemModel
- objectName: "itemModel"
- Rectangle {
- objectName: "item1"
- height: 110; width: 120; color: "#FFFEF0"
- Text { objectName: "text1"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- Rectangle {
- objectName: "item2"
- height: 130; width: 150; color: "#F0FFF7"
- Text { objectName: "text2"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- Rectangle {
- objectName: "item3"
- height: 170; width: 190; color: "#F4F0FF"
- Text { objectName: "text3"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent }
- }
- }
-
- GridView {
- id: view
- objectName: "view"
- cellWidth: 190
- cellHeight: 170
- anchors.fill: parent
- anchors.bottomMargin: 30
- model: itemModel
- highlightRangeMode: "StrictlyEnforceRange"
- flow: GridView.TopToBottom
- flickDeceleration: 2000
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/moveTransitions.qml b/tests/auto/qtquick2/qquickgridview/data/moveTransitions.qml
deleted file mode 100644
index 3599dcfea0..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/moveTransitions.qml
+++ /dev/null
@@ -1,143 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 500
- height: 600
-
- property int duration: 10
- property int count: grid.count
-
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
-
- property string nameData: name
-
- objectName: "wrapper"
- width: 80
- height: 60
- border.width: 1
- Column {
- Text { text: index }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- id: textName
- objectName: "textName"
- text: name
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
-
- onXChanged: checkPos()
- onYChanged: checkPos()
-
- function checkPos() {
- if (Qt.point(x, y) == targetItems_transitionVia)
- model_targetItems_transitionVia.addItem(name, "")
- if (Qt.point(x, y) == displacedItems_transitionVia)
- model_displacedItems_transitionVia.addItem(name, "")
- }
- }
- }
-
- GridView {
- id: grid
-
- property int targetTransitionsDone
- property int displaceTransitionsDone
-
- property var targetTrans_items: new Object()
- property var targetTrans_targetIndexes: new Array()
- property var targetTrans_targetItems: new Array()
-
- property var displacedTrans_items: new Object()
- property var displacedTrans_targetIndexes: new Array()
- property var displacedTrans_targetItems: new Array()
-
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- anchors.centerIn: parent
- model: testModel
- delegate: myDelegate
-
- // for QDeclarativeListProperty types
- function copyList(propList) {
- var temp = new Array()
- for (var i=0; i<propList.length; i++)
- temp.push(propList[i])
- return temp
- }
-
- move: Transition {
- id: targetTransition
-
- SequentialAnimation {
- ScriptAction {
- script: {
- grid.targetTrans_items[targetTransition.ViewTransition.item.nameData] = targetTransition.ViewTransition.index
- grid.targetTrans_targetIndexes.push(targetTransition.ViewTransition.targetIndexes)
- grid.targetTrans_targetItems.push(grid.copyList(targetTransition.ViewTransition.targetItems))
- }
- }
- ParallelAnimation {
- NumberAnimation { properties: "x"; to: targetItems_transitionVia.x; duration: root.duration }
- NumberAnimation { properties: "y"; to: targetItems_transitionVia.y; duration: root.duration }
- }
-
- NumberAnimation { properties: "x,y"; duration: root.duration }
-
- ScriptAction { script: grid.targetTransitionsDone += 1 }
- }
- }
-
- moveDisplaced: Transition {
- id: displaced
-
- SequentialAnimation {
- ScriptAction {
- script: {
- grid.displacedTrans_items[displaced.ViewTransition.item.nameData] = displaced.ViewTransition.index
- grid.displacedTrans_targetIndexes.push(displaced.ViewTransition.targetIndexes)
- grid.displacedTrans_targetItems.push(grid.copyList(displaced.ViewTransition.targetItems))
- }
- }
- ParallelAnimation {
- NumberAnimation {
- properties: "x"; duration: root.duration
- to: displacedItems_transitionVia.x
- }
- NumberAnimation {
- properties: "y"; duration: root.duration
- to: displacedItems_transitionVia.y
- }
- }
- NumberAnimation { properties: "x,y"; duration: root.duration }
-
- ScriptAction { script: grid.displaceTransitionsDone += 1 }
- }
-
- }
- }
-
- Rectangle {
- anchors.fill: grid
- color: "lightsteelblue"
- opacity: 0.2
- }
-
- Rectangle {
- anchors.bottom: parent.bottom
- width: 20; height: 20
- color: "white"
- NumberAnimation on x { loops: Animation.Infinite; from: 0; to: 300; duration: 10000 }
- }
-}
-
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/multipleTransitions.qml b/tests/auto/qtquick2/qquickgridview/data/multipleTransitions.qml
deleted file mode 100644
index 45b86e22cf..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/multipleTransitions.qml
+++ /dev/null
@@ -1,123 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 500
- height: 600
-
- // time to pause between each add, remove, etc.
- // (obviously, must be less than 'duration' value to actually test that
- // interrupting transitions will still produce the correct result)
- property int timeBetweenActions: duration / 2
-
- property int duration: 100
-
- property int count: grid.count
-
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.width: 1
- Column {
- Text { text: index }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- id: textName
- objectName: "textName"
- text: name
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
-
- GridView {
- id: grid
-
- property bool populateDone
-
- property bool runningAddTargets: false
- property bool runningAddDisplaced: false
- property bool runningMoveTargets: false
- property bool runningMoveDisplaced: false
-
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- anchors.centerIn: parent
- model: testModel
- delegate: myDelegate
-
- add: Transition {
- id: addTargets
- SequentialAnimation {
- ScriptAction { script: grid.runningAddTargets = true }
- ParallelAnimation {
- NumberAnimation { properties: "x"; from: addTargets_transitionFrom.x; duration: root.duration }
- NumberAnimation { properties: "y"; from: addTargets_transitionFrom.y; duration: root.duration }
- }
- ScriptAction { script: grid.runningAddTargets = false }
- }
- }
-
- addDisplaced: Transition {
- id: addDisplaced
- SequentialAnimation {
- ScriptAction { script: grid.runningAddDisplaced = true }
- ParallelAnimation {
- NumberAnimation { properties: "x"; from: addDisplaced_transitionFrom.x; duration: root.duration }
- NumberAnimation { properties: "y"; from: addDisplaced_transitionFrom.y; duration: root.duration }
- }
- ScriptAction { script: grid.runningAddDisplaced = false }
- }
- }
-
- move: Transition {
- id: moveTargets
- SequentialAnimation {
- ScriptAction { script: grid.runningMoveTargets = true }
- ParallelAnimation {
- NumberAnimation { properties: "x"; from: moveTargets_transitionFrom.x; duration: root.duration }
- NumberAnimation { properties: "y"; from: moveTargets_transitionFrom.y; duration: root.duration }
- }
- ScriptAction { script: grid.runningMoveTargets = false }
- }
- }
-
- moveDisplaced: Transition {
- id: moveDisplaced
- SequentialAnimation {
- ScriptAction { script: grid.runningMoveDisplaced = true }
- ParallelAnimation {
- NumberAnimation { properties: "x"; from: moveDisplaced_transitionFrom.x; duration: root.duration }
- NumberAnimation { properties: "y"; from: moveDisplaced_transitionFrom.y; duration: root.duration }
- }
- ScriptAction { script: grid.runningMoveDisplaced = false }
- }
- }
- }
-
- Rectangle {
- anchors.fill: grid
- color: "lightsteelblue"
- opacity: 0.2
- }
-
- Rectangle {
- anchors.bottom: parent.bottom
- width: 20; height: 20
- color: "white"
- NumberAnimation on x { loops: Animation.Infinite; from: 0; to: 300; duration: 100000 }
- }
-}
-
-
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/populateTransitions.qml b/tests/auto/qtquick2/qquickgridview/data/populateTransitions.qml
deleted file mode 100644
index c12d5ac39d..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/populateTransitions.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 500
- height: 600
-
- property int duration: 10
- property int count: grid.count
-
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- width: 80
- height: 60
- border.width: 1
- Column {
- Text { text: index }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- id: textName
- objectName: "textName"
- text: name
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
-
- onXChanged: checkPos()
- onYChanged: checkPos()
-
- function checkPos() {
- if (Qt.point(x, y) == transitionFrom)
- model_transitionFrom.addItem(name, "")
- if (Qt.point(x, y) == transitionVia)
- model_transitionVia.addItem(name, "")
- }
- }
- }
-
- GridView {
- id: grid
-
- property int countPopulateTransitions
- property int countAddTransitions
-
- objectName: "grid"
- focus: true
- anchors.centerIn: parent
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- model: testModel
- delegate: myDelegate
-
- populate: usePopulateTransition ? popTransition : null
-
- add: Transition {
- SequentialAnimation {
- ScriptAction { script: grid.countAddTransitions += 1 }
- NumberAnimation { properties: "x,y"; duration: root.duration }
- }
- }
- }
-
- Transition {
- id: popTransition
- SequentialAnimation {
- ParallelAnimation {
- NumberAnimation { properties: "x"; from: transitionFrom.x; to: transitionVia.x; duration: root.duration }
- NumberAnimation { properties: "y"; from: transitionFrom.y; to: transitionVia.y; duration: root.duration }
- }
- NumberAnimation { properties: "x,y"; duration: root.duration }
- ScriptAction { script: grid.countPopulateTransitions += 1 }
- }
- }
-
- Rectangle {
- anchors.fill: grid
- color: "lightsteelblue"
- opacity: 0.2
- }
-
- Component.onCompleted: {
- if (dynamicallyPopulate) {
- for (var i=0; i<30; i++)
- testModel.addItem("item " + i, "")
- }
- }
-
- Rectangle {
- anchors.bottom: parent.bottom
- width: 20; height: 20
- color: "white"
- NumberAnimation on x { loops: Animation.Infinite; from: 0; to: 300; duration: 100000 }
- }
-}
-
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/propertychangestest.qml b/tests/auto/qtquick2/qquickgridview/data/propertychangestest.qml
deleted file mode 100644
index 97efbe78f5..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/propertychangestest.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- width: 360; height: 120; color: "white"
- Component {
- id: delegate
- Item {
- id: wrapper
- width: 180; height: 40;
- Column {
- x: 5; y: 5
- Text { text: '<b>Name:</b> ' + name }
- Text { text: '<b>Number:</b> ' + number }
- }
- }
- }
- Component {
- id: highlightRed
- Rectangle {
- color: "red"
- radius: 10
- opacity: 0.5
- }
- }
- GridView {
- cellWidth:180
- cellHeight:40
- objectName: "gridView"
- anchors.fill: parent
- model: listModel
- delegate: delegate
- highlight: highlightRed
- focus: true
- keyNavigationWraps: true
- cacheBuffer: 10
- flow: GridView.LeftToRight
- }
-
- data:[
- ListModel {
- id: listModel
- ListElement {
- name: "Bill Smith"
- number: "555 3264"
- }
- ListElement {
- name: "John Brown"
- number: "555 8426"
- }
- ListElement {
- name: "Sam Wise"
- number: "555 0473"
- }
- },
- ListModel {
- objectName: "alternateModel"
- ListElement {
- name: "Jack"
- number: "555 8426"
- }
- ListElement {
- name: "Mary"
- number: "555 3264"
- }
- }
- ]
-}
-
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/removeTransitions.qml b/tests/auto/qtquick2/qquickgridview/data/removeTransitions.qml
deleted file mode 100644
index b07a03580a..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/removeTransitions.qml
+++ /dev/null
@@ -1,146 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 500
- height: 600
-
- property int duration: 10
- property int count: grid.count
-
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
-
- property string nameData: name
-
- objectName: "wrapper"
- width: 80
- height: 60
- border.width: 1
- Column {
- Text { text: index }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- Text {
- id: textName
- objectName: "textName"
- text: name
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "white"
-
- onXChanged: checkPos()
- onYChanged: checkPos()
-
- function checkPos() {
- if (Qt.point(x, y) == targetItems_transitionTo) {
- model_targetItems_transitionTo.addItem(nameData, "") // name is invalid once model removes the item
- }
- if (Qt.point(x, y) == displacedItems_transitionVia) {
- model_displacedItems_transitionVia.addItem(name, "")
- }
- }
- }
- }
-
- GridView {
- id: grid
-
- property int targetTransitionsDone
- property int displaceTransitionsDone
-
- property var targetTrans_items: new Object()
- property var targetTrans_targetIndexes: new Array()
- property var targetTrans_targetItems: new Array()
-
- property var displacedTrans_items: new Object()
- property var displacedTrans_targetIndexes: new Array()
- property var displacedTrans_targetItems: new Array()
-
- objectName: "grid"
- width: 240
- height: 320
- cellWidth: 80
- cellHeight: 60
- anchors.centerIn: parent
- model: testModel
- delegate: myDelegate
-
- // for QDeclarativeListProperty types
- function copyList(propList) {
- var temp = new Array()
- for (var i=0; i<propList.length; i++)
- temp.push(propList[i])
- return temp
- }
-
- remove: Transition {
- id: targetTransition
-
- SequentialAnimation {
- ScriptAction {
- script: {
- grid.targetTrans_items[targetTransition.ViewTransition.item.nameData] = targetTransition.ViewTransition.index
- grid.targetTrans_targetIndexes.push(targetTransition.ViewTransition.targetIndexes)
- grid.targetTrans_targetItems.push(grid.copyList(targetTransition.ViewTransition.targetItems))
- }
- }
- ParallelAnimation {
- NumberAnimation { properties: "x"; to: targetItems_transitionTo.x; duration: root.duration }
- NumberAnimation { properties: "y"; to: targetItems_transitionTo.y; duration: root.duration }
- }
- ScriptAction { script: grid.targetTransitionsDone += 1 }
-
- // delay deleting this item so that it stays valid for the tests
- // (this doesn't delay the test itself)
- PauseAnimation { duration: 10000 }
- }
- }
-
- removeDisplaced: Transition {
- id: displaced
-
- SequentialAnimation {
- ScriptAction {
- script: {
- grid.displacedTrans_items[displaced.ViewTransition.item.nameData] = displaced.ViewTransition.index
- grid.displacedTrans_targetIndexes.push(displaced.ViewTransition.targetIndexes)
- grid.displacedTrans_targetItems.push(grid.copyList(displaced.ViewTransition.targetItems))
- }
- }
- ParallelAnimation {
- NumberAnimation {
- properties: "x"; duration: root.duration
- to: displacedItems_transitionVia.x
- }
- NumberAnimation {
- properties: "y"; duration: root.duration
- to: displacedItems_transitionVia.y
- }
- }
- NumberAnimation { properties: "x,y"; duration: root.duration }
-
- ScriptAction { script: grid.displaceTransitionsDone += 1 }
- }
-
- }
- }
-
- Rectangle {
- anchors.fill: grid
- color: "lightsteelblue"
- opacity: 0.2
- }
-
- Rectangle {
- anchors.bottom: parent.bottom
- width: 20; height: 20
- color: "white"
- NumberAnimation on x { loops: Animation.Infinite; from: 0; to: 300; duration: 10000 }
- }
-}
-
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/resizeview.qml b/tests/auto/qtquick2/qquickgridview/data/resizeview.qml
deleted file mode 100644
index 130a0defc1..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/resizeview.qml
+++ /dev/null
@@ -1,25 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
-
- width: 240
- height: 320
-
- GridView {
- id: grid
- objectName: "grid"
- width: initialWidth
- height: initialHeight
- cellWidth: 80
- cellHeight: 60
- model: testModel
- delegate: Rectangle {
- objectName: "wrapper"
- width: 80
- height: 60
- border.width: 1
- }
- }
-}
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/setindex.qml b/tests/auto/qtquick2/qquickgridview/data/setindex.qml
deleted file mode 100644
index ef80f3a2fb..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/setindex.qml
+++ /dev/null
@@ -1,29 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- width: 200
- height: 200
- Component {
- id: appDelegate
-
- Item {
- id : wrapper
- function startupFunction() {
- if (index == 5) view.currentIndex = index;
- }
- Component.onCompleted: startupFunction();
- width: 30; height: 30
- Text { text: index }
- }
- }
-
- GridView {
- id: view
- objectName: "grid"
- anchors.fill: parent
- cellWidth: 30; cellHeight: 30
- model: 35
- delegate: appDelegate
- focus: true
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/snapOneRow.qml b/tests/auto/qtquick2/qquickgridview/data/snapOneRow.qml
deleted file mode 100644
index 3d32d75c45..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/snapOneRow.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 240
- height: 240
- color: "#ffffff"
-
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- height: 120
- width: 120
- Column {
- Text {
- text: index
- }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "transparent"
- }
- }
- GridView {
- id: grid
- objectName: "grid"
- anchors.fill: parent
- cellWidth: 120
- cellHeight: 120
- preferredHighlightBegin: 20
- preferredHighlightEnd: 140
- snapMode: GridView.SnapOneRow
- layoutDirection: Qt.RightToLeft
- flow: GridView.TopToBottom
- highlightRangeMode: GridView.StrictlyEnforceRange
- highlight: Rectangle { width: 120; height: 120; color: "yellow" }
- model: 10
- delegate: myDelegate
- }
-
- Text {
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- text: grid.contentX + ", " + grid.contentY
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/snapToRow.qml b/tests/auto/qtquick2/qquickgridview/data/snapToRow.qml
deleted file mode 100644
index f079a048f0..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/snapToRow.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- id: root
- width: 240
- height: 240
- color: "#ffffff"
-
- Component {
- id: myDelegate
- Rectangle {
- id: wrapper
- objectName: "wrapper"
- height: 80
- width: 80
- Column {
- Text {
- text: index
- }
- Text {
- text: wrapper.x + ", " + wrapper.y
- }
- }
- color: GridView.isCurrentItem ? "lightsteelblue" : "transparent"
- }
- }
- GridView {
- id: grid
- objectName: "grid"
- anchors.fill: parent
- cellWidth: 80
- cellHeight: 80
- preferredHighlightBegin: 20
- preferredHighlightEnd: 100
- snapMode: GridView.SnapToRow
- layoutDirection: Qt.RightToLeft
- flow: GridView.TopToBottom
- highlightRangeMode: GridView.StrictlyEnforceRange
- highlight: Rectangle { width: 80; height: 80; color: "yellow" }
- model: 54
- delegate: myDelegate
- }
-
- Text {
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- text: grid.contentX + ", " + grid.contentY
- }
-}
diff --git a/tests/auto/qtquick2/qquickgridview/data/unaligned.qml b/tests/auto/qtquick2/qquickgridview/data/unaligned.qml
deleted file mode 100644
index 445400e8b4..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/unaligned.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.0
-
-GridView {
- width: 400
- height: 200
- cellWidth: width/9
- cellHeight: height/2
-
- model: testModel
- delegate: Rectangle {
- objectName: "wrapper"; width: 10; height: 10; color: "green"
- Text { text: index }
- }
-}
-
diff --git a/tests/auto/qtquick2/qquickgridview/data/unrequestedItems.qml b/tests/auto/qtquick2/qquickgridview/data/unrequestedItems.qml
deleted file mode 100644
index 79f845fd25..0000000000
--- a/tests/auto/qtquick2/qquickgridview/data/unrequestedItems.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-import QtQuick 2.0
-
-Item {
- width: 240
- height: 320
-
- Component {
- id: myDelegate
-
- Package {
- Rectangle {
- id: leftWrapper
- objectName: "wrapper"
- Package.name: "left"
- height: 80
- width: 60
- Column {
- Text { text: index }
- Text { text: name }
- Text { text: leftWrapper.x + ", " + leftWrapper.y }
- }
- color: ListView.isCurrentItem ? "lightsteelblue" : "white"
- }
- Rectangle {
- id: rightWrapper
- objectName: "wrapper"
- Package.name: "right"
- height: 80
- width: 60
- Column {
- Text { text: index }
- Text { text: name }
- Text { text: rightWrapper.x + ", " + rightWrapper.y }
- }
- color: ListView.isCurrentItem ? "lightsteelblue" : "white"
- }
- }
-
- }
-
- VisualDataModel {
- id: visualModel
-
- delegate: myDelegate
- model: testModel
- }
-
- GridView {
- id: leftList
- objectName: "leftGrid"
- anchors {
- left: parent.left; top: parent.top;
- right: parent.horizontalCenter; bottom: parent.bottom
- }
- model: visualModel.parts.left
- cellWidth: 60
- cellHeight: 80
- }
-
- GridView {
- id: rightList
- objectName: "rightGrid"
- anchors {
- left: parent.horizontalCenter; top: parent.top;
- right: parent.right; bottom: parent.bottom
- }
- model: visualModel.parts.right
- cellWidth: 60
- cellHeight: 80
- }
-}