mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 08:21:22 +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
|
@ -247,6 +247,11 @@ void DolphinColumnWidget::dragMoveEvent(QDragMoveEvent* event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setDirtyRegion(m_dropRect);
|
setDirtyRegion(m_dropRect);
|
||||||
|
|
||||||
|
if (event->mimeData()->hasUrls()) {
|
||||||
|
// accept url drops, independently from the destination item
|
||||||
|
event->acceptProposedAction();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DolphinColumnWidget::dropEvent(QDropEvent* event)
|
void DolphinColumnWidget::dropEvent(QDropEvent* event)
|
||||||
|
|
|
@ -278,6 +278,11 @@ void DolphinDetailsView::dragMoveEvent(QDragMoveEvent* event)
|
||||||
}
|
}
|
||||||
setDirtyRegion(m_dropRect);
|
setDirtyRegion(m_dropRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event->mimeData()->hasUrls()) {
|
||||||
|
// accept url drops, independently from the destination item
|
||||||
|
event->acceptProposedAction();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DolphinDetailsView::dropEvent(QDropEvent* event)
|
void DolphinDetailsView::dropEvent(QDropEvent* event)
|
||||||
|
|
|
@ -227,8 +227,10 @@ void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event)
|
||||||
m_dropRect.setSize(QSize()); // set as invalid
|
m_dropRect.setSize(QSize()); // set as invalid
|
||||||
if (index.isValid()) {
|
if (index.isValid()) {
|
||||||
const KFileItem item = itemForIndex(index);
|
const KFileItem item = itemForIndex(index);
|
||||||
if (!item.isNull()) {
|
if (!item.isNull() && item.isDir()) {
|
||||||
m_dropRect = visualRect(index);
|
m_dropRect = visualRect(index);
|
||||||
|
} else {
|
||||||
|
m_dropRect.setSize(QSize()); // set as invalid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (event->mimeData()->hasUrls()) {
|
if (event->mimeData()->hasUrls()) {
|
||||||
|
|
Loading…
Reference in a new issue