diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/focusscope/test3.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/focusscope/test3.qml | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/auto/declarative/qmlvisual/focusscope/test3.qml b/tests/auto/declarative/qmlvisual/focusscope/test3.qml deleted file mode 100644 index 90c23573df..0000000000 --- a/tests/auto/declarative/qmlvisual/focusscope/test3.qml +++ /dev/null @@ -1,52 +0,0 @@ -import QtQuick 1.0 - -/* - Currently selected element should be red - Pressing "9" should print the number of the currently selected item - Be sure to scroll all the way to the right, pause, and then all the way to the left -*/ -Rectangle { - color: "white" - width: 400 - height: 100 - - ListModel { - id: model - ListElement { name: "red" } - ListElement { name: "orange" } - ListElement { name: "yellow" } - ListElement { name: "green" } - ListElement { name: "cyan" } - ListElement { name: "blue" } - ListElement { name: "indigo" } - ListElement { name: "violet" } - ListElement { name: "pink" } - } - - Component { - id: verticalDelegate - FocusScope { - 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?"black":name - } - } - } - - ListView { - width: 800; height: 50; orientation: "Horizontal" - focus: true - model: model - delegate: verticalDelegate - preferredHighlightBegin: 100 - preferredHighlightEnd: 101 - highlightRangeMode: ListView.StrictlyEnforceRange - } - - -} |