diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextinput/data/navigation.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/data/navigation.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/data/navigation.qml b/tests/auto/declarative/qdeclarativetextinput/data/navigation.qml new file mode 100644 index 0000000..493db5b --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextinput/data/navigation.qml @@ -0,0 +1,24 @@ +import Qt 4.6 + +Rectangle { + property var myInput: input + + width: 800; height: 600; color: "blue" + + Item { + id: firstItem; + KeyNavigation.right: input + } + + TextInput { id: input; focus: true + text: "Needs some text" + KeyNavigation.left: firstItem + KeyNavigation.right: lastItem + KeyNavigation.up: firstItem + KeyNavigation.down: lastItem + } + Item { + id: lastItem + KeyNavigation.left: input + } +} |