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:
Aaron J. Seigo 2008-06-10 20:14:16 +00:00
parent acc6cc94b7
commit b43676f838

View file

@ -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;
}