summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-12 08:37:45 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-12 08:39:38 (GMT)
commitbdc6badde26d7543618561b51c4f76dec24e66f3 (patch)
tree4695176084fed24198fcfa2f45df4ed41bbe721f
parent2d00cfe51ca07a934c4f172d0131156190a9b6e1 (diff)
downloadQt-bdc6badde26d7543618561b51c4f76dec24e66f3.zip
Qt-bdc6badde26d7543618561b51c4f76dec24e66f3.tar.gz
Qt-bdc6badde26d7543618561b51c4f76dec24e66f3.tar.bz2
usage of Q_OS_WINCE fixed
There's no QT_OS_WINCE define. Reviewed-by: mauricek
-rw-r--r--src/gui/kernel/qkeymapper_win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qkeymapper_win.cpp b/src/gui/kernel/qkeymapper_win.cpp
index b094784..36abf86 100644
--- a/src/gui/kernel/qkeymapper_win.cpp
+++ b/src/gui/kernel/qkeymapper_win.cpp
@@ -770,7 +770,7 @@ bool QKeyMapperPrivate::translateKeyEvent(QWidget *widget, const MSG &msg, bool
bool isNumpad = (msg.wParam >= VK_NUMPAD0 && msg.wParam <= VK_NUMPAD9);
quint32 nModifiers = 0;
-#if defined(QT_OS_WINCE)
+#if defined(Q_OS_WINCE)
nModifiers |= (GetKeyState(VK_SHIFT ) < 0 ? ShiftAny : 0);
nModifiers |= (GetKeyState(VK_CONTROL) < 0 ? ControlAny : 0);
nModifiers |= (GetKeyState(VK_MENU ) < 0 ? AltAny : 0);
@@ -790,7 +790,7 @@ bool QKeyMapperPrivate::translateKeyEvent(QWidget *widget, const MSG &msg, bool
nModifiers |= (GetKeyState(VK_CAPITAL ) & 0x01 ? CapsLock : 0);
nModifiers |= (GetKeyState(VK_NUMLOCK ) & 0x01 ? NumLock : 0);
nModifiers |= (GetKeyState(VK_SCROLL ) & 0x01 ? ScrollLock : 0);
-#endif // QT_OS_WINCE
+#endif // Q_OS_WINCE
if (msg.lParam & ExtendedKey)
nModifiers |= msg.lParam & ExtendedKey;