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.h | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'src/dolphindropcontroller.h') diff --git a/src/dolphindropcontroller.h b/src/dolphindropcontroller.h index 647955802..f4e7c84c2 100644 --- a/src/dolphindropcontroller.h +++ b/src/dolphindropcontroller.h @@ -20,25 +20,19 @@ #ifndef DOLPHINDROPCONTROLLER_H #define DOLPHINDROPCONTROLLER_H -#include -#include - #include "libdolphin_export.h" class QDropEvent; +class QWidget; class KUrl; class KFileItem; /** * @brief Handler for drop events, shared between DolphinView and TreeViewSidebarPage */ -class LIBDOLPHINPRIVATE_EXPORT DolphinDropController : public QObject +class LIBDOLPHINPRIVATE_EXPORT DolphinDropController { - Q_OBJECT public: - explicit DolphinDropController(QWidget* parentWidget); - virtual ~DolphinDropController(); - /** * Handles the dropping of URLs to the given * destination. A context menu with the options @@ -46,21 +40,13 @@ public: * 'Cancel' is offered to the user. * @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 KFileItem& destItem, - const KUrl& destPath, - QDropEvent* event); - -signals: - /** - * Is emitted when renaming, copying, moving, linking etc. - * Used for feedback in the mainwindow. + * @param event Drop event. + * @param widget Source widget where the dragging has been started. */ - void doingOperation(KIO::FileUndoManager::CommandType type); - -private: - QWidget* m_parentWidget; + static void dropUrls(const KFileItem& destItem, + const KUrl& destPath, + QDropEvent* event, + QWidget* widget); }; #endif // DOLPHINDROPCONTROLLER_H -- cgit v1.3