diff options
| author | Peter Penz <[email protected]> | 2008-10-01 21:39:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-01 21:39:35 +0000 |
| commit | aa0b09dac43ec2a58bd32a1e08d59acd35bd86aa (patch) | |
| tree | 53613eaf7ae13768286a20f3ee77edde191ce1c3 /src/dolphindropcontroller.h | |
| parent | db2013a2fd518fa7b8c37f26840b6c0d36f56fe7 (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.h')
| -rw-r--r-- | src/dolphindropcontroller.h | 30 |
1 files changed, 8 insertions, 22 deletions
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 <QObject> -#include <kio/fileundomanager.h> - #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 |
