From 679a6b373a5496c069b1ed668f7eb166237bd0e2 Mon Sep 17 00:00:00 2001 From: Prasanth Ullattil Date: Mon, 28 Sep 2009 22:49:12 +0200 Subject: QWheelEvent not working on Cocoa 64Bit The patch which added support for smooth scrolling will work only on 32 bit builds. The new methods (e.g. deviceDeltaX) of the NSEvent were added with the float return type. This should be of CGFloat type instead, which is different from float on 64 bit builds. Reviewed-by: Trust Me --- src/gui/kernel/qcocoaview_mac.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm index 4ebf8a9..f482d1c 100644 --- a/src/gui/kernel/qcocoaview_mac.mm +++ b/src/gui/kernel/qcocoaview_mac.mm @@ -64,9 +64,9 @@ #include @interface NSEvent (DeviceDelta) - - (float)deviceDeltaX; - - (float)deviceDeltaY; - - (float)deviceDeltaZ; + - (CGFloat)deviceDeltaX; + - (CGFloat)deviceDeltaY; + - (CGFloat)deviceDeltaZ; @end QT_BEGIN_NAMESPACE -- cgit v0.12