aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/draganddrop/views/gridview.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/draganddrop/views/gridview.qml')
-rw-r--r--examples/quick/draganddrop/views/gridview.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/quick/draganddrop/views/gridview.qml b/examples/quick/draganddrop/views/gridview.qml
index b18078f48d..d156ca0c48 100644
--- a/examples/quick/draganddrop/views/gridview.qml
+++ b/examples/quick/draganddrop/views/gridview.qml
@@ -49,7 +49,9 @@ GridView {
NumberAnimation { properties: "x,y"; easing.type: Easing.OutQuad }
}
+//! [0]
model: VisualDataModel {
+//! [0]
id: visualModel
model: ListModel {
id: colorModel
@@ -78,7 +80,7 @@ GridView {
ListElement { color: "crimson" }
ListElement { color: "teal" }
}
-
+//! [1]
delegate: MouseArea {
id: delegateRoot
@@ -125,5 +127,6 @@ GridView {
onEntered: visualModel.items.move(drag.source.visualIndex, delegateRoot.visualIndex)
}
}
+//! [1]
}
}