summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlgraphicstextedit/data/navigation.qml
blob: 5b8613fa1aac67a2b042991960295e5fe32615db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Qt 4.6

Rectangle {
    property var myInput: Input

    width: 800; height: 600; color: "blue"

    Item { 
        id: FirstItem;
        KeyNavigation.right: Input
    }

    TextEdit { id: Input; focus: true
        KeyNavigation.left: FirstItem
        KeyNavigation.right: LastItem
        KeyNavigation.up: FirstItem
        KeyNavigation.down: LastItem
    }
    Item {
        id: LastItem 
        KeyNavigation.left: Input
    }
}