summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeitem/data/keyspriority.qml
blob: 375a6b61a5b742628a0d7ac752ee5484ba733225 (plain)
1
2
3
4
5
6
7
8
9
import QtQuick 1.0
import Test 1.0

KeyTestItem {
    focus: true
    Keys.onPressed: keysTestObject.keyPress(event.key, event.text, event.modifiers)
    Keys.onReleased: { keysTestObject.keyRelease(event.key, event.text, event.modifiers); event.accepted = true; }
    Keys.priority: keysTestObject.processLast ? Keys.AfterItem : Keys.BeforeItem
}