diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit/data/navigation.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/navigation.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/data/navigation.qml b/tests/auto/declarative/qdeclarativetextedit/data/navigation.qml new file mode 100644 index 0000000..8d7dbbc --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/navigation.qml @@ -0,0 +1,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 + } +} |