From ea548584637bf0f6da5d8dac0e7172a4cdc1fc50 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 2 Jun 2007 17:42:43 +0000 Subject: don't forget to clear the hover information when a drag leave event occurs svn path=/trunk/KDE/kdebase/apps/; revision=670856 --- src/dolphiniconsview.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/dolphiniconsview.cpp') diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index a4d7fe454..5c4f56008 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -134,6 +134,15 @@ void DolphinIconsView::dragEnterEvent(QDragEnterEvent* event) m_dragging = true; } +void DolphinIconsView::dragLeaveEvent(QDragLeaveEvent* event) +{ + KListView::dragLeaveEvent(event); + + // TODO: remove this code when the issue #160611 is solved in Qt 4.4 + m_dragging = false; + setDirtyRegion(m_dropRect); +} + void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event) { KListView::dragMoveEvent(event); -- cgit v1.3