From aa0b09dac43ec2a58bd32a1e08d59acd35bd86aa Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 1 Oct 2008 21:39:35 +0000 Subject: * adjusted Dolphin to use KonqOperations::doDrop() instead of using a custom implementation * used new signals jobRecordingStarted() and jobRecordingFinished from FileUndoManager to inform the user in the statusbar when a recorded command has been finished svn path=/trunk/KDE/kdebase/apps/; revision=866777 --- src/dolphindropcontroller.cpp | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'src/dolphindropcontroller.cpp') diff --git a/src/dolphindropcontroller.cpp b/src/dolphindropcontroller.cpp index 6d1261d1a..40fccf0d2 100644 --- a/src/dolphindropcontroller.cpp +++ b/src/dolphindropcontroller.cpp @@ -20,25 +20,12 @@ #include "dolphindropcontroller.h" #include -#include -#include -#include -#include -#include #include -DolphinDropController::DolphinDropController(QWidget* parentWidget) - : QObject(parentWidget), m_parentWidget(parentWidget) -{ -} - -DolphinDropController::~DolphinDropController() -{ -} - void DolphinDropController::dropUrls(const KFileItem& destItem, const KUrl& destPath, - QDropEvent* event) + QDropEvent* event, + QWidget* widget) { const bool dropToItem = !destItem.isNull() && (destItem.isDir() || destItem.isDesktopFile()); const KUrl destination = dropToItem ? destItem.url() : destPath; @@ -47,13 +34,9 @@ void DolphinDropController::dropUrls(const KFileItem& destItem, const KUrl sourceDir = KUrl(urls.first().directory()); if (sourceDir != destination) { if (dropToItem) { - KonqOperations::doDrop(destItem, destination, event, m_parentWidget); + KonqOperations::doDrop(destItem, destination, event, widget); } else { - KonqOperations::doDrop(KFileItem(), destination, event, m_parentWidget); + KonqOperations::doDrop(KFileItem(), destination, event, widget); } } - // TODO: emit doingOperation, so that the main window gets informed about - // about the finished operations -} - -#include "dolphindropcontroller.moc" +} \ No newline at end of file -- cgit v1.3