mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
use KonqOperations::doDrop. unfortunately the popup menu goes away immediately, and modifier shortcuts such as ctrl/shift are also innexplicably ignored. so .. the drop code is there, just need to figure out what even maddness is going on.
svn path=/trunk/KDE/kdebase/apps/; revision=819237
This commit is contained in:
parent
acc6cc94b7
commit
b43676f838
1 changed files with 10 additions and 1 deletions
|
@ -866,7 +866,16 @@ void FolderView::dropEvent(QGraphicsSceneDragDropEvent *event)
|
|||
// in the drag and drop operation, but since two QGraphicsItems can be part of the
|
||||
// same widget, we can't use that method here.
|
||||
if (!m_dragInProgress) {
|
||||
m_model->dropMimeData(event->mimeData(), event->dropAction(), -1, -1, QModelIndex());
|
||||
KFileItem item;
|
||||
const QModelIndex index = indexAt(event->pos());
|
||||
if (index.isValid()) {
|
||||
item == m_model->itemForIndex(index);
|
||||
}
|
||||
|
||||
QDropEvent ev(event->screenPos(), event->dropAction(), event->mimeData(),
|
||||
event->buttons(), event->modifiers());
|
||||
kDebug() << "dropping to" << m_url << "with" << view();
|
||||
KonqOperations::doDrop(item, m_url, &ev, view()->nativeParentWidget());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue