diff options
| author | Peter Penz <[email protected]> | 2008-09-28 18:38:00 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-09-28 18:38:00 +0000 |
| commit | 0382f24544d71eae01a85b98ab24b82daf482ecc (patch) | |
| tree | 62a375abc208639093ed51c9ccfd26ab30b7d658 /src/dolphindetailsview.cpp | |
| parent | f8a973dc4ad0a1388058a9acbb20a81bc58149cb (diff) | |
Use KonqOperations::doDrop() instead of a custom dropping code. Still some minor issues are open (Dolphin currently gets no feedback anymore when the operations have been finished), but they will be solved during the next week.
BUG: 168154
svn path=/trunk/KDE/kdebase/apps/; revision=865708
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 61cb0df76..79a1a106d 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -349,18 +349,12 @@ void DolphinDetailsView::dragMoveEvent(QDragMoveEvent* event) void DolphinDetailsView::dropEvent(QDropEvent* event) { - const KUrl::List urls = KUrl::List::fromMimeData(event->mimeData()); - if (!urls.isEmpty()) { - event->acceptProposedAction(); - const QModelIndex index = indexAt(event->pos()); - KFileItem item; - if (index.isValid() && (index.column() == DolphinModel::Name)) { - item = m_controller->itemForIndex(index); - } - m_controller->indicateDroppedUrls(urls, - m_controller->url(), - item); + const QModelIndex index = indexAt(event->pos()); + KFileItem item; + if (index.isValid() && (index.column() == DolphinModel::Name)) { + item = m_controller->itemForIndex(index); } + m_controller->indicateDroppedUrls(item, m_controller->url(), event); QTreeView::dropEvent(event); } |
