summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeitem/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-10-04 06:44:32 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-10-04 06:48:29 (GMT)
commitf25391e52af3eef68abfa3941fc48da0c52bb010 (patch)
tree0b8f02830dc0b81b144867c33253823ecc60ca2f /tests/auto/declarative/qdeclarativeitem/data
parentda45259dbfa05c4f3b6c8c0472a65851692060e4 (diff)
downloadQt-f25391e52af3eef68abfa3941fc48da0c52bb010.zip
Qt-f25391e52af3eef68abfa3941fc48da0c52bb010.tar.gz
Qt-f25391e52af3eef68abfa3941fc48da0c52bb010.tar.bz2
Improve test coverage for declarative module.
Add additional autotests, and remove unreachable functions.
Diffstat (limited to 'tests/auto/declarative/qdeclarativeitem/data')
-rw-r--r--tests/auto/declarative/qdeclarativeitem/data/keystest.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeitem/data/keystest.qml b/tests/auto/declarative/qdeclarativeitem/data/keystest.qml
index aedccd9..3927f42 100644
--- a/tests/auto/declarative/qdeclarativeitem/data/keystest.qml
+++ b/tests/auto/declarative/qdeclarativeitem/data/keystest.qml
@@ -2,6 +2,9 @@ import QtQuick 1.0
Item {
focus: true
+
+ property bool isEnabled: Keys.enabled
+
Keys.onPressed: keysTestObject.keyPress(event.key, event.text, event.modifiers)
Keys.onReleased: { keysTestObject.keyRelease(event.key, event.text, event.modifiers); event.accepted = true; }
Keys.onReturnPressed: keysTestObject.keyPress(event.key, "Return", event.modifiers)