mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Give visual feedback when dragging with the cursor also. If you are not able to drop to an item (for example, a txt file) the cursor also changes to "forbidden" with the
categorized view. svn path=/trunk/KDE/kdebase/apps/; revision=750059
This commit is contained in:
parent
bdb91e85ec
commit
2b6ecf638d
1 changed files with 6 additions and 5 deletions
|
@ -1159,14 +1159,15 @@ void KCategorizedView::dragMoveEvent(QDragMoveEvent *event)
|
|||
|
||||
d->dragLeftViewport = false;
|
||||
|
||||
if ((viewMode() != KCategorizedView::IconMode) || !d->proxyModel ||
|
||||
!d->categoryDrawer || !d->proxyModel->isCategorizedModel())
|
||||
{
|
||||
#if defined(DOLPHIN_DRAGANDDROP)
|
||||
QAbstractItemView::dragMoveEvent(event);
|
||||
#else
|
||||
QListView::dragMoveEvent(event);
|
||||
#endif
|
||||
|
||||
if ((viewMode() != KCategorizedView::IconMode) || !d->proxyModel ||
|
||||
!d->categoryDrawer || !d->proxyModel->isCategorizedModel())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue