From eb36093c2c5a8782c7c7f6be92881c108c30a5b1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 16 Apr 2008 20:26:21 +0000 Subject: if the mouse is above an item and moved very fast outside the widget, no viewportEntered() signal might be emitted although the mouse has been moved above the viewport svn path=/trunk/KDE/kdebase/apps/; revision=797742 --- 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 959f152f0..7b9ddd6ac 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -276,6 +276,15 @@ void DolphinIconsView::showEvent(QShowEvent* event) KCategorizedView::showEvent(event); } +void DolphinIconsView::leaveEvent(QEvent* event) +{ + KCategorizedView::leaveEvent(event); + // if the mouse is above an item and moved very fast outside the widget, + // no viewportEntered() signal might be emitted although the mouse has been moved + // above the viewport + m_controller->emitViewportEntered(); +} + void DolphinIconsView::slotShowPreviewChanged() { const DolphinView* view = m_controller->dolphinView(); -- cgit v1.3