diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-04-27 16:35:12 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-30 04:33:55 +0200 |
commit | b0497cf5405e7ca95fa7a3eb51ff9c7f897c0e9e (patch) | |
tree | f2944d57e4780a5a56ac11735098c268018916ae /examples/quick/draganddrop/views/gridview.qml | |
parent | 15692017d5b94302305bf15cfd1dd34dcc8a3a9e (diff) |
Elaborate on drag and drop and model view examples with snippets.
Change-Id: I8a6874c4bb480ed9bcc59e743b97d439f053840e
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples/quick/draganddrop/views/gridview.qml')
-rw-r--r-- | examples/quick/draganddrop/views/gridview.qml | 5 |
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] } } |