mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
579a1ea6be
commit
665ca266e9
3 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue