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/dolphinfileplacesview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/dolphinfileplacesview.cpp') diff --git a/src/dolphinfileplacesview.cpp b/src/dolphinfileplacesview.cpp index 4165b9049..a2291275d 100644 --- a/src/dolphinfileplacesview.cpp +++ b/src/dolphinfileplacesview.cpp @@ -19,6 +19,7 @@ #include "dolphinfileplacesview.h" #include "dolphindropcontroller.h" +#include #include DolphinFilePlacesView::DolphinFilePlacesView(QWidget* parent) : @@ -44,13 +45,11 @@ void DolphinFilePlacesView::mousePressEvent(QMouseEvent* event) void DolphinFilePlacesView::slotUrlsDropped(const KUrl& dest, QDropEvent* event, QWidget* parent) { - const KUrl::List urls = KUrl::List::fromMimeData(event->mimeData()); - DolphinDropController dropController(parent); // forward doingOperation signal up to the mainwindow connect(&dropController, SIGNAL(doingOperation(KIO::FileUndoManager::CommandType)), this, SIGNAL(doingOperation(KIO::FileUndoManager::CommandType))); - dropController.dropUrls(urls, dest); + dropController.dropUrls(KFileItem(), dest, event); } void DolphinFilePlacesView::emitExtendedUrlChangedSignal(const KUrl& url) -- cgit v1.3