From 5c1d647a716efa21ff72538c711a8c85717bf615 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 13 Jul 2010 17:06:11 +0000 Subject: 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 --- src/draganddrophelper.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/draganddrophelper.h') 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 +#include 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; -- cgit v1.3.1