summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhluk <hluk@email.cz>2013-04-22 21:07:36 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-24 17:15:49 +0200
commit9e035d9de2d1c775dd02eca2df5d8ebf5aca41ad (patch)
tree7b427b26399ff0482f5bc610df198f7256e87d00
parent106dc410e91cf5d9743c30427e2c428d679dfbf9 (diff)
Use Qt::Key_unknown for unknown keys instead of -1 with xcb
Task-number: QTBUG-3515 Change-Id: I9875437744455a2cce2da075c1fa6e2a91f55b63 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
-rw-r--r--src/plugins/platforms/xcb/qxcbkeyboard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbkeyboard.cpp b/src/plugins/platforms/xcb/qxcbkeyboard.cpp
index 4ac60f6077..02f10bba89 100644
--- a/src/plugins/platforms/xcb/qxcbkeyboard.cpp
+++ b/src/plugins/platforms/xcb/qxcbkeyboard.cpp
@@ -736,7 +736,7 @@ Qt::KeyboardModifiers QXcbKeyboard::translateModifiers(int s)
int QXcbKeyboard::translateKeySym(uint key) const
{
- int code = -1;
+ int code = Qt::Key_unknown;
int i = 0; // any other keys
while (KeyTbl[i]) {
if (key == KeyTbl[i]) {