aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents.cpp
diff options
context:
space:
mode:
authorGlenn Watson <glenn.watson@nokia.com>2012-07-03 11:04:02 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-03 06:42:36 +0200
commit01173fd0c09e51ca949df51fac2fa7e439e466d1 (patch)
tree3902ec75babf56175d8096596de77fa07e19d96c /src/quick/items/qquickevents.cpp
parentbd0bfcd4e85f7877a9fdab94506c2ff8bc61441c (diff)
Add nativeScanCode to KeyEvent.
Allow the Qt nativeScanCode value to be passed through to the QML event handler. Task-number: QTBUG-18590 Change-Id: If598e0d65adc0e9bc29cca773a0bda2c8037b661 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/quick/items/qquickevents.cpp')
-rw-r--r--src/quick/items/qquickevents.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents.cpp b/src/quick/items/qquickevents.cpp
index b2e73af6f7..01f75a74fd 100644
--- a/src/quick/items/qquickevents.cpp
+++ b/src/quick/items/qquickevents.cpp
@@ -93,6 +93,15 @@ Item {
*/
/*!
+ \qmlproperty quint32 QtQuick2::KeyEvent::nativeScanCode
+
+ This property contains the native scan code of the key that was pressed. It is
+ passed through from QKeyEvent unchanged.
+
+ \sa QKeyEvent::nativeScanCode()
+*/
+
+/*!
\qmlproperty int QtQuick2::KeyEvent::count
This property holds the number of keys involved in this event. If \l KeyEvent::text