summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-08-18 09:19:15 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-08-18 09:19:15 (GMT)
commit0f8a326341bd3aab1675acb6b15e011247f7c6f8 (patch)
treedbdb6983e3ddbe47294ca424e143f1a997c24b8d /src
parenta160bbbed21cea0487410013eea95937be65b3d4 (diff)
downloadQt-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.mm6
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()