summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_mac.mm
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-12-04 09:03:36 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-12-04 09:03:36 (GMT)
commit6001ef3bb9cdf41c5375a22cdaee85fffdf3b644 (patch)
treef37a69fc24d84522a0cb388802a38022a3cd9943 /src/gui/kernel/qapplication_mac.mm
parentd1a28d167295958a4404fab37d60ef530c692590 (diff)
parentd7b34583926e3bd751120a4b827cd5ba6667dea3 (diff)
downloadQt-6001ef3bb9cdf41c5375a22cdaee85fffdf3b644.zip
Qt-6001ef3bb9cdf41c5375a22cdaee85fffdf3b644.tar.gz
Qt-6001ef3bb9cdf41c5375a22cdaee85fffdf3b644.tar.bz2
Merge commit 'oslo-staging-1/4.6' into master-mainline
Diffstat (limited to 'src/gui/kernel/qapplication_mac.mm')
-rw-r--r--src/gui/kernel/qapplication_mac.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_mac.mm b/src/gui/kernel/qapplication_mac.mm
index 22a0959..688e51f 100644
--- a/src/gui/kernel/qapplication_mac.mm
+++ b/src/gui/kernel/qapplication_mac.mm
@@ -1687,7 +1687,10 @@ QApplicationPrivate::globalEventProcessor(EventHandlerCallRef er, EventRef event
UInt32 mac_buttons = 0;
GetEventParameter(event, kEventParamMouseChord, typeUInt32, 0,
sizeof(mac_buttons), 0, &mac_buttons);
- buttons = qt_mac_get_buttons(mac_buttons);
+ if (ekind != kEventMouseWheelMoved)
+ buttons = qt_mac_get_buttons(mac_buttons);
+ else
+ buttons = QApplication::mouseButtons();
}
int wheel_deltaX = 0;