summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWeng Xuetian <wengxt@gmail.com>2012-06-24 13:04:44 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-22 22:56:50 +0100
commitdccd784edfc234802391956062ba395769ff35e1 (patch)
treea0f5e9c6253db4ab68a38995146187142f051c6b /src
parentbe6e270d12a8267194bab669c111be9c1ec9615c (diff)
Pass extended key event infomation in xcb platform.
Bare QKeyEvent missing some useful info for input method. Use new construct of QKeyEvent to create extended QKeyEvent Change-Id: I8c89e80e7329b92e3e04d5fe52d07c6f6f9e006f Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/xcb/qxcbkeyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qxcbkeyboard.cpp b/src/plugins/platforms/xcb/qxcbkeyboard.cpp
index d35ce181e3..e47c0814e9 100644
--- a/src/plugins/platforms/xcb/qxcbkeyboard.cpp
+++ b/src/plugins/platforms/xcb/qxcbkeyboard.cpp
@@ -1102,7 +1102,7 @@ void QXcbKeyboard::handleKeyEvent(QWindow *window, QEvent::Type type, xcb_keycod
bool filtered = false;
if (inputContext) {
- QKeyEvent event(type, qtcode, modifiers, string, isAutoRepeat);
+ QKeyEvent event(type, qtcode, modifiers, code, sym, state, string.left(count), isAutoRepeat, count);
event.setTimestamp(time);
filtered = inputContext->filterEvent(&event);
}
@@ -1130,7 +1130,7 @@ void QXcbKeyboard::handleKeyEvent(QWindow *window, QEvent::Type type, xcb_keycod
}
if (!filtered && inputContext) {
- QKeyEvent event(QEvent::KeyPress, qtcode, modifiers, string, isAutoRepeat);
+ QKeyEvent event(QEvent::KeyPress, qtcode, modifiers, code, sym, state, string.left(count), isAutoRepeat, count);
event.setTimestamp(time);
filtered = inputContext->filterEvent(&event);
}