┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-02 17:42:43 +0000
committerPeter Penz <[email protected]>2007-06-02 17:42:43 +0000
commitea548584637bf0f6da5d8dac0e7172a4cdc1fc50 (patch)
treec77c9f6ece8c9645d240c2c5969c88314cfa6a94 /src/dolphiniconsview.cpp
parentc5a871a6a25d367d80d9b2d9a85fcf8b32f51538 (diff)
don't forget to clear the hover information when a drag leave event occurs
svn path=/trunk/KDE/kdebase/apps/; revision=670856
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp9
1 files changed, 9 insertions, 0 deletions
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);