diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-02-05 14:25:23 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-02-05 15:22:43 (GMT) |
commit | 1efb2693b15f23f269be1db393a83af132924e06 (patch) | |
tree | 8ed2801a64ca3e37233b984d252e44c59841d96e /src/gui/kernel/qdnd_p.h | |
parent | 00d08740a1a5234c7f73eb634dcd45092b97dacd (diff) | |
download | Qt-1efb2693b15f23f269be1db393a83af132924e06.zip Qt-1efb2693b15f23f269be1db393a83af132924e06.tar.gz Qt-1efb2693b15f23f269be1db393a83af132924e06.tar.bz2 |
Added new mouse cursor types.
Added Qt::DragCopyCursor, DragMoveCursor and DragLinkCursor that are already
used internally for drag-n-drop, but were not exposed before. On X11 made them
use themed cursors through the Xcursor library.
Drag-n-drop now use these new cursors.
Inspired-by: David Benjamin MR#2215
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qdnd_p.h')
-rw-r--r-- | src/gui/kernel/qdnd_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qdnd_p.h b/src/gui/kernel/qdnd_p.h index d70b983..1eb85ed 100644 --- a/src/gui/kernel/qdnd_p.h +++ b/src/gui/kernel/qdnd_p.h @@ -244,7 +244,9 @@ public: bool willDrop; QEventLoop *eventLoop; +#if defined(Q_WS_X11) || defined(Q_WS_WIN) QPixmap dragCursor(Qt::DropAction action) const; +#endif bool hasCustomDragCursors() const; @@ -261,8 +263,6 @@ public: #endif private: - QPixmap *pm_cursor; - int n_cursor; #ifdef Q_WS_QWS Qt::DropAction currentActionForOverrideCursor; #endif |