aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/testlib/testcase.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/testlib/testcase.qdoc')
-rw-r--r--src/imports/testlib/testcase.qdoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/testlib/testcase.qdoc b/src/imports/testlib/testcase.qdoc
index 64fa42d579..56fcb24beb 100644
--- a/src/imports/testlib/testcase.qdoc
+++ b/src/imports/testlib/testcase.qdoc
@@ -174,7 +174,8 @@
The keyPress(), keyRelease(), and keyClick() methods can be used
to simulate keyboard events within unit tests. The events are
- delivered to the currently focused QML item.
+ delivered to the currently focused QML item. You can pass either
+ a Qt.Key enum value or a latin1 char (string of length one)
\code
Rectangle {
@@ -187,6 +188,7 @@
function test_key_click() {
keyClick(Qt.Key_Left)
+ keyClick("a")
...
}
}