summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qdnd_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-02-05 15:25:23 +0100
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-02-05 16:22:43 +0100
commit1efb2693b15f23f269be1db393a83af132924e06 (patch)
tree8ed2801a64ca3e37233b984d252e44c59841d96e /src/gui/kernel/qdnd_p.h
parent00d08740a1a5234c7f73eb634dcd45092b97dacd (diff)
downloadqt4-tools-1efb2693b15f23f269be1db393a83af132924e06.tar.gz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qdnd_p.h b/src/gui/kernel/qdnd_p.h
index d70b983c30..1eb85edf65 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