summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <peter.penz19@gmail.com>2012-01-28 10:03:22 (GMT)
committerPeter Penz <peter.penz19@gmail.com>2012-01-28 10:04:20 (GMT)
commitbc80a99ffa5a658ba1d7be00c681f5394e365790 (patch)
tree460a8292ee0e0b8fbc5ce5fbd0e96d4f4fa6d882
parent4ad60e45bc723403d2bb8e872f581cc14cd89716 (diff)
Assure to mark an item as unhovered on a drag-leave event
BUG: 292501 FIXED-IN: 4.8.1
-rw-r--r--dolphin/src/kitemviews/kitemlistcontroller.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/dolphin/src/kitemviews/kitemlistcontroller.cpp b/dolphin/src/kitemviews/kitemlistcontroller.cpp
index 560d160..bd37aa9 100644
--- a/dolphin/src/kitemviews/kitemlistcontroller.cpp
+++ b/dolphin/src/kitemviews/kitemlistcontroller.cpp
@@ -710,6 +710,12 @@ bool KItemListController::dragLeaveEvent(QGraphicsSceneDragDropEvent* event, con
{
Q_UNUSED(event);
Q_UNUSED(transform);
+
+ KItemListWidget* widget = hoveredWidget();
+ if (widget) {
+ widget->setHovered(false);
+ emit itemUnhovered(widget->index());
+ }
return false;
}