aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/modelviews/listview/highlightranges.qml
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-04-27 16:35:12 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-30 04:33:55 +0200
commitb0497cf5405e7ca95fa7a3eb51ff9c7f897c0e9e (patch)
treef2944d57e4780a5a56ac11735098c268018916ae /examples/quick/modelviews/listview/highlightranges.qml
parent15692017d5b94302305bf15cfd1dd34dcc8a3a9e (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/modelviews/listview/highlightranges.qml')
-rw-r--r--examples/quick/modelviews/listview/highlightranges.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/quick/modelviews/listview/highlightranges.qml b/examples/quick/modelviews/listview/highlightranges.qml
index 1cf5c06f45..be5a40d152 100644
--- a/examples/quick/modelviews/listview/highlightranges.qml
+++ b/examples/quick/modelviews/listview/highlightranges.qml
@@ -41,6 +41,7 @@
import QtQuick 2.0
import "content"
+//! [0]
Rectangle {
id: root
property int current: 0
@@ -57,6 +58,7 @@ Rectangle {
to: 0
}
}
+//! [0]
MouseArea{
id: ma
z: 1
@@ -89,7 +91,7 @@ Rectangle {
// The first ListView sets root.current whenever its currentIndex changes
// due to keyboard interaction.
// Flicking the third ListView with the mouse also changes root.current.
-
+//! [1]
ListView {
id: list1
height: 160; width: parent.width
@@ -131,7 +133,7 @@ Rectangle {
preferredHighlightBegin: 125; preferredHighlightEnd: 125
highlightRangeMode: ListView.StrictlyEnforceRange
}
-
+//! [1]
// The delegate for each list
Component {
id: petDelegate
@@ -151,4 +153,6 @@ Rectangle {
}
}
}
+//! [2]
}
+//! [2]