summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlgraphicstextedit/data
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-09 02:10:34 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-09 02:10:34 (GMT)
commit7b5ecf9d033708bbc86e8b2901e3634970b6d9ab (patch)
treec17da747327d6ac211a1808a5f4836a79fd81218 /tests/auto/declarative/qmlgraphicstextedit/data
parent3ceeb87db6b6f7beeffe9df0417bd076fa72eece (diff)
downloadQt-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.qml8
-rw-r--r--tests/auto/declarative/qmlgraphicstextedit/data/navigation.qml23
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
+ }
+}