summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/focusscope/test3.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/focusscope/test3.qml')
-rw-r--r--tests/auto/declarative/visual/focusscope/test3.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/declarative/visual/focusscope/test3.qml b/tests/auto/declarative/visual/focusscope/test3.qml
index 4be9dc7..855bdc5 100644
--- a/tests/auto/declarative/visual/focusscope/test3.qml
+++ b/tests/auto/declarative/visual/focusscope/test3.qml
@@ -5,8 +5,8 @@ Rectangle {
width: 800
height: 600
- ListModel {
- id: Model
+ Listmodel {
+ id: model
ListElement { name: "1" }
ListElement { name: "2" }
ListElement { name: "3" }
@@ -19,16 +19,16 @@ Rectangle {
}
Component {
- id: VerticalDelegate
+ id: verticalDelegate
FocusScope {
- id: Root
+ id: root
width: 50; height: 50;
Keys.onDigit9Pressed: console.log("Error - " + name)
Rectangle {
focus: true
Keys.onDigit9Pressed: console.log(name)
width: 50; height: 50;
- color: Root.ListView.isCurrentItem?"red":"green"
+ color: root.ListView.isCurrentItem?"red":"green"
Text { text: name; anchors.centerIn: parent }
}
}
@@ -37,8 +37,8 @@ Rectangle {
ListView {
width: 800; height: 50; orientation: "Horizontal"
focus: true
- model: Model
- delegate: VerticalDelegate
+ model: model
+ delegate: verticalDelegate
preferredHighlightBegin: 100
preferredHighlightEnd: 101
highlightRangeMode: ListView.StrictlyEnforceRange