So I guess that is the behaviour that we really want :)

CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=750173
This commit is contained in:
Rafael Fernández López 2007-12-18 21:04:26 +00:00
parent 579a1ea6be
commit 665ca266e9
3 changed files with 13 additions and 1 deletions

View file

@ -247,6 +247,11 @@ void DolphinColumnWidget::dragMoveEvent(QDragMoveEvent* event)
}
}
setDirtyRegion(m_dropRect);
if (event->mimeData()->hasUrls()) {
// accept url drops, independently from the destination item
event->acceptProposedAction();
}
}
void DolphinColumnWidget::dropEvent(QDropEvent* event)

View file

@ -278,6 +278,11 @@ void DolphinDetailsView::dragMoveEvent(QDragMoveEvent* event)
}
setDirtyRegion(m_dropRect);
}
if (event->mimeData()->hasUrls()) {
// accept url drops, independently from the destination item
event->acceptProposedAction();
}
}
void DolphinDetailsView::dropEvent(QDropEvent* event)

View file

@ -227,8 +227,10 @@ void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event)
m_dropRect.setSize(QSize()); // set as invalid
if (index.isValid()) {
const KFileItem item = itemForIndex(index);
if (!item.isNull()) {
if (!item.isNull() && item.isDir()) {
m_dropRect = visualRect(index);
} else {
m_dropRect.setSize(QSize()); // set as invalid
}
}
if (event->mimeData()->hasUrls()) {