summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-09 02:37:21 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-09 02:37:21 (GMT)
commit91687be5b61ffd7e7239e6a17008aefe82ac1093 (patch)
treebf7899d669698015ff6ee335f3478685aab6c4d6 /src
parent3b1a0c4877faa9d1d50372f2128c06530ae4b2d4 (diff)
parent96ce91dedc2aea60377d9008b806ebbe8cc53169 (diff)
downloadQt-91687be5b61ffd7e7239e6a17008aefe82ac1093.zip
Qt-91687be5b61ffd7e7239e6a17008aefe82ac1093.tar.gz
Qt-91687be5b61ffd7e7239e6a17008aefe82ac1093.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Added QMake directory to INCPATH so the compiler can find required headers Handle Shift+Tab correctly on X11.
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qkeymapper_x11.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/kernel/qkeymapper_x11.cpp b/src/gui/kernel/qkeymapper_x11.cpp
index 70574e7..4e6c847 100644
--- a/src/gui/kernel/qkeymapper_x11.cpp
+++ b/src/gui/kernel/qkeymapper_x11.cpp
@@ -360,6 +360,13 @@ QList<int> QKeyMapperPrivate::possibleKeysXKB(QKeyEvent *event)
if (code && code < 0xfffe)
code = QChar(code).toUpper().unicode();
+
+ if (code == Qt::Key_Tab && (baseModifiers & Qt::ShiftModifier)) {
+ // map shift+tab to shift+backtab
+ code = Qt::Key_Backtab;
+ text = QString();
+ }
+
if (code == baseCode)
continue;
@@ -448,6 +455,13 @@ QList<int> QKeyMapperPrivate::possibleKeysCore(QKeyEvent *event)
if (code && code < 0xfffe)
code = QChar(code).toUpper().unicode();
+
+ if (code == Qt::Key_Tab && (baseModifiers & Qt::ShiftModifier)) {
+ // map shift+tab to shift+backtab
+ code = Qt::Key_Backtab;
+ text = QString();
+ }
+
if (code == baseCode)
continue;