summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2012-06-20 15:10:30 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-21 01:35:12 +0200
commit6d8583bc295ca6b4bdc5120f695dd501b96df4c0 (patch)
treed670a7dc73f418d1b9c75da8eb24f2fc39558208 /examples/declarative
parented0250efca989b330dc4838ed996810f4d75574a (diff)
Make a click in highlight example set the currentIndex
Task-number: QTBUG-26210 Change-Id: Id5999971968736cd5856eccafdb9c3636bb9c44c Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml
index 6f531265..b872bbdb 100644
--- a/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml
+++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml
@@ -60,6 +60,7 @@ Rectangle {
Text { text: 'Type: ' + type }
Text { text: 'Age: ' + age }
}
+ MouseArea { anchors.fill: parent; onClicked: listView.currentIndex = index }
// indent the item if it is the current item
states: State {
name: "Current"