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:
Rafael Fernández López 2007-12-18 16:01:39 +00:00
parent bdb91e85ec
commit 2b6ecf638d

View file

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