From 0382f24544d71eae01a85b98ab24b82daf482ecc Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 28 Sep 2008 18:38:00 +0000 Subject: Use KonqOperations::doDrop() instead of a custom dropping code. Still some minor issues are open (Dolphin currently gets no feedback anymore when the operations have been finished), but they will be solved during the next week. BUG: 168154 svn path=/trunk/KDE/kdebase/apps/; revision=865708 --- src/dolphindropcontroller.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/dolphindropcontroller.h') diff --git a/src/dolphindropcontroller.h b/src/dolphindropcontroller.h index 955d1614c..647955802 100644 --- a/src/dolphindropcontroller.h +++ b/src/dolphindropcontroller.h @@ -21,11 +21,14 @@ #define DOLPHINDROPCONTROLLER_H #include -#include #include #include "libdolphin_export.h" +class QDropEvent; +class KUrl; +class KFileItem; + /** * @brief Handler for drop events, shared between DolphinView and TreeViewSidebarPage */ @@ -41,14 +44,13 @@ public: * destination. A context menu with the options * 'Move Here', 'Copy Here', 'Link Here' and * 'Cancel' is offered to the user. - * @param urls List of URLs which have been - * dropped. - * @param destination Destination URL, where the - * list or URLs should be moved, - * copied or linked to. + * @param destItem Item of the destination (can be null, see KFileItem::isNull()). + * @param destPath Path of the destination. + * @param event Drop event */ - void dropUrls(const KUrl::List& urls, - const KUrl& destination); + void dropUrls(const KFileItem& destItem, + const KUrl& destPath, + QDropEvent* event); signals: /** -- cgit v1.3