┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindropcontroller.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-10-01 21:39:35 +0000
committerPeter Penz <[email protected]>2008-10-01 21:39:35 +0000
commitaa0b09dac43ec2a58bd32a1e08d59acd35bd86aa (patch)
tree53613eaf7ae13768286a20f3ee77edde191ce1c3 /src/dolphindropcontroller.cpp
parentdb2013a2fd518fa7b8c37f26840b6c0d36f56fe7 (diff)
* 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
Diffstat (limited to 'src/dolphindropcontroller.cpp')
-rw-r--r--src/dolphindropcontroller.cpp27
1 files changed, 5 insertions, 22 deletions
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 <kfileitem.h>
-#include <klocale.h>
-#include <kicon.h>
-#include <QApplication>
-#include <kdebug.h>
-#include <kmenu.h>
#include <konq_operations.h>
-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