diff options
| author | Peter Penz <[email protected]> | 2008-09-28 18:38:00 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-09-28 18:38:00 +0000 |
| commit | 0382f24544d71eae01a85b98ab24b82daf482ecc (patch) | |
| tree | 62a375abc208639093ed51c9ccfd26ab30b7d658 /src/dolphinfileplacesview.cpp | |
| parent | f8a973dc4ad0a1388058a9acbb20a81bc58149cb (diff) | |
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
Diffstat (limited to 'src/dolphinfileplacesview.cpp')
| -rw-r--r-- | src/dolphinfileplacesview.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 <kfileitem.h> #include <konq_operations.h> 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) |
