diff options
Diffstat (limited to 'tests/auto/quick/qquickwindow/data/eventTypes.qml')
-rw-r--r-- | tests/auto/quick/qquickwindow/data/eventTypes.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickwindow/data/eventTypes.qml b/tests/auto/quick/qquickwindow/data/eventTypes.qml new file mode 100644 index 0000000000..05d80bfbd1 --- /dev/null +++ b/tests/auto/quick/qquickwindow/data/eventTypes.qml @@ -0,0 +1,20 @@ +import QtQuick +import QtQuick.Window + +Window { + id: root + function handleKey(e: KeyEvent) {} + function handleMouse(e: MouseEvent) {} + function handleWheel(e: WheelEvent) {} + function handleClose(e: CloseEvent) {} + + Item { + Keys.onDeletePressed: root.handleKey + MouseArea { + onClicked: root.handleMouse + onWheel: root.handleWheel + } + } + + onClosing: handleClose +} |