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/sidebartreeview.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/sidebartreeview.cpp')
| -rw-r--r-- | src/sidebartreeview.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/sidebartreeview.cpp b/src/sidebartreeview.cpp index 0b18c260a..00c98f6e7 100644 --- a/src/sidebartreeview.cpp +++ b/src/sidebartreeview.cpp @@ -125,16 +125,11 @@ void SidebarTreeView::dragMoveEvent(QDragMoveEvent* event) void SidebarTreeView::dropEvent(QDropEvent* event) { - const KUrl::List urls = KUrl::List::fromMimeData(event->mimeData()); - if (urls.isEmpty()) { - KTreeView::dropEvent(event); - } else { - event->acceptProposedAction(); - const QModelIndex index = indexAt(event->pos()); - if (index.isValid()) { - emit urlsDropped(urls, index); - } + const QModelIndex index = indexAt(event->pos()); + if (index.isValid()) { + emit urlsDropped(index, event); } + KTreeView::dropEvent(event); } #include "sidebartreeview.moc" |
