┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-12-13 17:00:11 +0000
committerPeter Penz <[email protected]>2009-12-13 17:00:11 +0000
commit5d5d5c8e803159857bc29a7f83077426d5694a17 (patch)
treec3d28098c73007f75f7403d76b26339425c3bcd1
parentb6bd25b4a7fd3c35df88b613f93c0627ec593fd1 (diff)
give KCategorizedView the chance to react on dragMoveEvents()
CCBUG: 208646 svn path=/trunk/KDE/kdebase/apps/; revision=1062054
-rw-r--r--src/dolphiniconsview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index e7448ed6d..871fd5fbd 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -199,12 +199,14 @@ void DolphinIconsView::dragEnterEvent(QDragEnterEvent* event)
void DolphinIconsView::dragLeaveEvent(QDragLeaveEvent* event)
{
- Q_UNUSED(event);
+ KCategorizedView::dragLeaveEvent(event);
setDirtyRegion(m_dropRect);
}
void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event)
{
+ KCategorizedView::dragMoveEvent(event);
+
// TODO: remove this code when the issue #160611 is solved in Qt 4.4
const QModelIndex index = indexAt(event->pos());
setDirtyRegion(m_dropRect);
@@ -231,6 +233,8 @@ void DolphinIconsView::dropEvent(QDropEvent* event)
const QModelIndex index = indexAt(event->pos());
const KFileItem item = m_controller->itemForIndex(index);
m_controller->indicateDroppedUrls(item, m_controller->url(), event);
+ // don't call KCategorizedView::dropEvent(event), as it moves
+ // the items which is not wanted
}
QModelIndex DolphinIconsView::moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)