summaryrefslogtreecommitdiffstats
path: root/examples/quick/draganddrop/doc/src/draganddrop.qdoc
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2014-05-28 16:19:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-05 12:02:01 +0200
commit5f99a6388abf87c34e052f3d7e266c48852a52dd (patch)
treeb88dc0b9dc36c477d6716edf932eb328d413ad68 /examples/quick/draganddrop/doc/src/draganddrop.qdoc
parentc9553ad7d8041c7b0fd769dc8cd0f5335d9408a3 (diff)
Doc: Updated "Qt Quick Examples" pages.
-added instructions about running the example (using \include) -used the example names as sections in the collection pages -general editing and documentation polishing -updated copyright information Change-Id: I044f29fcc1921a541040505d5821acb06dc4cb35 Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/quick/draganddrop/doc/src/draganddrop.qdoc')
-rw-r--r--examples/quick/draganddrop/doc/src/draganddrop.qdoc28
1 files changed, 18 insertions, 10 deletions
diff --git a/examples/quick/draganddrop/doc/src/draganddrop.qdoc b/examples/quick/draganddrop/doc/src/draganddrop.qdoc
index 2c62e271e6..909f2676bd 100644
--- a/examples/quick/draganddrop/doc/src/draganddrop.qdoc
+++ b/examples/quick/draganddrop/doc/src/draganddrop.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -31,11 +31,19 @@
\image qml-draganddrop-example.png
\ingroup qtquickexamples
- This is a collection of small QML examples relating to drag and drop functionality.
+ \e{Drag and Drop} is a collection of small QML examples relating to drag
+ and drop functionality. For more information, visit the \l{Drag and Drop}
+ page.
- \section2 Tiles adds drag and drop to simple rectangles, which you can drag into a specific grid.
+ \include examples-run.qdocinc
- It has a DragTile component which uses a MouseArea to move an item when dragged:
+ \section1 Tiles
+
+ \e Tiles adds drag and drop to simple rectangles, which you can drag into a
+ specific grid.
+
+ It has a DragTile component which uses a MouseArea to move an item when
+ dragged:
\snippet draganddrop/tiles/DragTile.qml 0
\snippet draganddrop/tiles/DragTile.qml 1
@@ -44,15 +52,15 @@
\snippet draganddrop/tiles/DropTile.qml 0
- The keys property of the DropArea will only allow an item with matching key in
- it's Drag.keys property to be dropped on it.
+ The keys property of the DropArea will only allow an item with a matching
+ key in its Drag.keys property to be dropped on it.
- \section2 GridView adds drag and drop to a GridView, allowing you to reorder the list.
+ \section1 GridView
- It uses a DelegateModel to move a delegate item to the position of another item
- it is dragged over.
+ \e GridView adds drag and drop to a \l GridView, allowing you to reorder the
+ list. It also uses a \l DelegateModel to move a delegate item to the
+ position of another item it is dragged over.
\snippet draganddrop/views/gridview.qml 0
\snippet draganddrop/views/gridview.qml 1
*/
-