┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/draganddrophelper.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-07-13 17:06:11 +0000
committerPeter Penz <[email protected]>2010-07-13 17:06:11 +0000
commit5c1d647a716efa21ff72538c711a8c85717bf615 (patch)
treeb63de80efce31633f891ef66ddaf661b9a55f681 /src/draganddrophelper.h
parentd92bc6337c31e27e8a0fa340398fadf8d0ee0317 (diff)
Forward port: Fix issue that dragging several directories shows a document as drag item. Instead try to show the icons of the dragged items.
CCBUG: 244305 svn path=/trunk/KDE/kdebase/apps/; revision=1149557
Diffstat (limited to 'src/draganddrophelper.h')
-rw-r--r--src/draganddrophelper.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/draganddrophelper.h b/src/draganddrophelper.h
index f107350a7..3cb506c43 100644
--- a/src/draganddrophelper.h
+++ b/src/draganddrophelper.h
@@ -23,13 +23,14 @@
#include "libdolphin_export.h"
#include <QObject>
+#include <QPixmap>
class DolphinViewController;
class KFileItem;
class KUrl;
class QDropEvent;
-class QMimeData;
class QAbstractItemView;
+class QMimeData;
class QWidget;
/**
@@ -63,7 +64,7 @@ public:
* Returns true if and only if the view \a itemView was the last view to
* be passed to startDrag(...), and that drag is still in progress.
*/
- bool isDragSource(QAbstractItemView* itemView);
+ bool isDragSource(QAbstractItemView* itemView) const;
/**
* Handles the dropping of URLs to the given
@@ -84,6 +85,13 @@ signals:
private:
DragAndDropHelper();
+
+ /**
+ * Creates a pixmap the contains the all icons of the items
+ * that are dragged.
+ */
+ QPixmap createDragPixmap(QAbstractItemView* itemView) const;
+
// The last view passed in startDrag(...), or 0 if
// no startDrag(...) initiated drag is in progress.
QAbstractItemView *m_dragSource;