From: Rafael Fernández López Date: Tue, 18 Dec 2007 16:01:39 +0000 (+0000) Subject: Give visual feedback when dragging with the cursor also. If you are not able to drop... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/2b6ecf638d15c11b13c86c381e05e549c8684be6 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 --- diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 3a5363807..dae4f9121 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -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); + QAbstractItemView::dragMoveEvent(event); #else - QListView::dragMoveEvent(event); + QListView::dragMoveEvent(event); #endif + + if ((viewMode() != KCategorizedView::IconMode) || !d->proxyModel || + !d->categoryDrawer || !d->proxyModel->isCategorizedModel()) + { return; }