diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-11-09 02:10:34 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-11-09 02:10:34 (GMT) |
commit | 7b5ecf9d033708bbc86e8b2901e3634970b6d9ab (patch) | |
tree | c17da747327d6ac211a1808a5f4836a79fd81218 /tests/auto/declarative/qmlgraphicstextedit/data | |
parent | 3ceeb87db6b6f7beeffe9df0417bd076fa72eece (diff) | |
download | Qt-7b5ecf9d033708bbc86e8b2901e3634970b6d9ab.zip Qt-7b5ecf9d033708bbc86e8b2901e3634970b6d9ab.tar.gz Qt-7b5ecf9d033708bbc86e8b2901e3634970b6d9ab.tar.bz2 |
Rename TextEdit and TextInput autotests
Diffstat (limited to 'tests/auto/declarative/qmlgraphicstextedit/data')
-rw-r--r-- | tests/auto/declarative/qmlgraphicstextedit/data/cursorTest.qml | 8 | ||||
-rw-r--r-- | tests/auto/declarative/qmlgraphicstextedit/data/navigation.qml | 23 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicstextedit/data/cursorTest.qml b/tests/auto/declarative/qmlgraphicstextedit/data/cursorTest.qml new file mode 100644 index 0000000..e5df8f1 --- /dev/null +++ b/tests/auto/declarative/qmlgraphicstextedit/data/cursorTest.qml @@ -0,0 +1,8 @@ +import Qt 4.6 + +Rectangle { width: 300; height: 300; color: "white" + TextEdit { text: "Hello world!"; id: textEditObject; objectName: "textEditObject" + resources: [ Component { id:cursor; Item { id:cursorInstance; objectName: "cursorInstance" } } ] + cursorDelegate: cursor + } +} diff --git a/tests/auto/declarative/qmlgraphicstextedit/data/navigation.qml b/tests/auto/declarative/qmlgraphicstextedit/data/navigation.qml new file mode 100644 index 0000000..5b8613f --- /dev/null +++ b/tests/auto/declarative/qmlgraphicstextedit/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 + } +} |