diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-09-29 08:48:15 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-09-29 08:50:01 (GMT) |
commit | e6fe0607cc213e29cb83d4c26550f196cb1c5129 (patch) | |
tree | c7827d3ce9304b2fdef4ec35e55643f6899ca8ab /src | |
parent | c142149d720beda1374b7bc28dd46b5c7e944bea (diff) | |
download | Qt-e6fe0607cc213e29cb83d4c26550f196cb1c5129.zip Qt-e6fe0607cc213e29cb83d4c26550f196cb1c5129.tar.gz Qt-e6fe0607cc213e29cb83d4c26550f196cb1c5129.tar.bz2 |
Mac: Fix build failure on tiger
I had to add inn some constants for dealing with pixel smooth
scolling on mac when building on Tiger. This is done according to:
http://developer.apple.com/legacy/mac/library/qa/qa2005/qa1453.html
RevBy:prasanth
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qapplication_mac.mm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_mac.mm b/src/gui/kernel/qapplication_mac.mm index a656c7f..c294e62 100644 --- a/src/gui/kernel/qapplication_mac.mm +++ b/src/gui/kernel/qapplication_mac.mm @@ -960,7 +960,18 @@ struct QMacAppleEventTypeSpec { { kCoreEventClass, kAEQuitApplication }, { kCoreEventClass, kAEOpenDocuments } }; + #ifndef QT_MAC_USE_COCOA + +#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5) +enum +{ + kEventMouseScroll = 11, + kEventParamMouseWheelSmoothVerticalDelta = 'saxy', + kEventParamMouseWheelSmoothHorizontalDelta = 'saxx', +}; +#endif + /* watched events */ static EventTypeSpec app_events[] = { { kEventClassQt, kEventQtRequestWindowChange }, |