diff options
| author | David Faure <[email protected]> | 2008-04-30 23:32:33 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-04-30 23:32:33 +0000 |
| commit | 06e9ece82168a739d3f59a9d843ba89113fba650 (patch) | |
| tree | f0623d802f31594379192baf4868ea9cd04a83a0 /src/dolphindropcontroller.cpp | |
| parent | fd46bdb301b481bd1f3823db018867e3ffb9fa49 (diff) | |
KonqFileUndoManager moved to kdelibs, as KIO::FileUndoManager. Ported the code in libkonq+dolphin+konqueror.
svn path=/trunk/KDE/kdebase/apps/; revision=802881
Diffstat (limited to 'src/dolphindropcontroller.cpp')
| -rw-r--r-- | src/dolphindropcontroller.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dolphindropcontroller.cpp b/src/dolphindropcontroller.cpp index a9fd94df5..45a7092c7 100644 --- a/src/dolphindropcontroller.cpp +++ b/src/dolphindropcontroller.cpp @@ -29,6 +29,7 @@ // TODO replace with KonqOperations::doDrop [or move doDrop code into this class] // Note that this means changing the DolphinDropController controller usage // to "create with new and let it autodelete" instead of on stack, since doDrop is async. +// NOTE: let's wait for KDirModel::dropEvent first. DolphinDropController::DolphinDropController(QWidget* parentWidget) : QObject(parentWidget), m_parentWidget(parentWidget) @@ -107,17 +108,17 @@ void DolphinDropController::dropUrls(const KUrl::List& urls, switch (action) { case Qt::MoveAction: KonqOperations::copy(m_parentWidget, KonqOperations::MOVE, urls, destination); - emit doingOperation(KonqFileUndoManager::MOVE); + emit doingOperation(KIO::FileUndoManager::Move); break; case Qt::CopyAction: KonqOperations::copy(m_parentWidget, KonqOperations::COPY, urls, destination); - emit doingOperation(KonqFileUndoManager::COPY); + emit doingOperation(KIO::FileUndoManager::Copy); break; case Qt::LinkAction: KonqOperations::copy(m_parentWidget, KonqOperations::LINK, urls, destination); - emit doingOperation(KonqFileUndoManager::LINK); + emit doingOperation(KIO::FileUndoManager::Link); break; default: |
