diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-18 09:19:15 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-18 09:19:15 (GMT) |
commit | 0f8a326341bd3aab1675acb6b15e011247f7c6f8 (patch) | |
tree | dbdb6983e3ddbe47294ca424e143f1a997c24b8d /src | |
parent | a160bbbed21cea0487410013eea95937be65b3d4 (diff) | |
download | Qt-0f8a326341bd3aab1675acb6b15e011247f7c6f8.zip Qt-0f8a326341bd3aab1675acb6b15e011247f7c6f8.tar.gz Qt-0f8a326341bd3aab1675acb6b15e011247f7c6f8.tar.bz2 |
Fix build failure on Mac OS 10.5
Gestures only awailable on 10.6
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index b13c9eb..999faeb 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -730,12 +730,14 @@ static EventTypeSpec window_events[] = { { kEventClassWindow, kEventWindowGetRegion }, { kEventClassWindow, kEventWindowGetClickModality }, { kEventClassWindow, kEventWindowTransitionCompleted }, - { kEventClassMouse, kEventMouseDown }, +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 { kEventClassGesture, kEventGestureStarted }, { kEventClassGesture, kEventGestureEnded }, { kEventClassGesture, kEventGestureMagnify }, { kEventClassGesture, kEventGestureSwipe }, - { kEventClassGesture, kEventGestureRotate } + { kEventClassGesture, kEventGestureRotate }, +#endif + { kEventClassMouse, kEventMouseDown } }; static EventHandlerUPP mac_win_eventUPP = 0; static void cleanup_win_eventUPP() |