diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-14 13:02:34 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-14 13:35:39 (GMT) |
commit | 56feb92927d48edffcd09491091ec735b86a820d (patch) | |
tree | 114a4e229ab0f46a4ea56a7031e20456bf7f9260 /src/gui/kernel/qcursor.h | |
parent | 9a41b437be6014c7a671591e2741c5ca7d8c8be8 (diff) | |
download | Qt-56feb92927d48edffcd09491091ec735b86a820d.zip Qt-56feb92927d48edffcd09491091ec735b86a820d.tar.gz Qt-56feb92927d48edffcd09491091ec735b86a820d.tar.bz2 |
Fix a bug where a widget would not always get the correct Cursor in Cocoa
Cocoa has a different way of dealing with cursors than our heavy handed
approach that we used in Carbon. We simply need to re-implement the
proper function in NSView and set up the rectangles for the cursor
correctly. We also need to expose an QCursor2NSCursor type functions
since the current QCursor::handle() is useless for doing this and we
shouldn't change that. With this change things seem to work much more
like the native stuff for both Carbon and Cocoa.
Diffstat (limited to 'src/gui/kernel/qcursor.h')
-rw-r--r-- | src/gui/kernel/qcursor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qcursor.h b/src/gui/kernel/qcursor.h index 15b4597..ad1860d 100644 --- a/src/gui/kernel/qcursor.h +++ b/src/gui/kernel/qcursor.h @@ -77,6 +77,7 @@ class QBitmap; class QPixmap; #if defined(Q_WS_MAC) +void *nsCursorForQCursor(const QCursor &c); void qt_mac_set_cursor(const QCursor *c, const QPoint &p); #endif @@ -128,6 +129,7 @@ public: private: QCursorData *d; #if defined(Q_WS_MAC) + friend void *nsCursorForQCursor(const QCursor &c); friend void qt_mac_set_cursor(const QCursor *c, const QPoint &p); #endif }; |