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/dolphiniconsview.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/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 9947a2755..14a8b9fca 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -252,17 +252,9 @@ void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event) void DolphinIconsView::dropEvent(QDropEvent* event) { - if (!selectionModel()->isSelected(indexAt(event->pos()))) { - const KUrl::List urls = KUrl::List::fromMimeData(event->mimeData()); - if (!urls.isEmpty()) { - const QModelIndex index = indexAt(event->pos()); - const KFileItem item = m_controller->itemForIndex(index); - m_controller->indicateDroppedUrls(urls, - m_controller->url(), - item); - event->acceptProposedAction(); - } - } + const QModelIndex index = indexAt(event->pos()); + const KFileItem item = m_controller->itemForIndex(index); + m_controller->indicateDroppedUrls(item, m_controller->url(), event); KCategorizedView::dropEvent(event); } |
