┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/sidebartreeview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-11-20 21:11:48 +0000
committerPeter Penz <[email protected]>2007-11-20 21:11:48 +0000
commite46003aca365ca66ce7c7cccd47fb52d1da2fb91 (patch)
treeea8b80800a5986f0e47f90e93c2b70f270af8a87 /src/sidebartreeview.cpp
parentddacabc391ddfe95dff909a00946182dc15f9990 (diff)
Drag & drop fixes for all views: assure that a consistent pixmap for the drag object is used throughout all views (still open yet: KCategorizedView uses its custom code yet)
svn path=/trunk/KDE/kdebase/apps/; revision=739322
Diffstat (limited to 'src/sidebartreeview.cpp')
-rw-r--r--src/sidebartreeview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sidebartreeview.cpp b/src/sidebartreeview.cpp
index ae6c26224..3567c35d6 100644
--- a/src/sidebartreeview.cpp
+++ b/src/sidebartreeview.cpp
@@ -21,6 +21,7 @@
#include "dolphincontroller.h"
#include "dolphinmodel.h"
+#include "draganddrophelper.h"
#include <kfileitemdelegate.h>
#include <QKeyEvent>
@@ -95,6 +96,11 @@ bool SidebarTreeView::event(QEvent* event)
return QTreeView::event(event);
}
+void SidebarTreeView::startDrag(Qt::DropActions supportedActions)
+{
+ DragAndDropHelper::startDrag(this, supportedActions);
+}
+
void SidebarTreeView::dragEnterEvent(QDragEnterEvent* event)
{
if (event->mimeData()->hasUrls()) {
@@ -146,7 +152,7 @@ void SidebarTreeView::paintEvent(QPaintEvent* event)
// TODO: remove this code when the issue #160611 is solved in Qt 4.4
if (m_dragging) {
const QBrush& brush = palette().brush(QPalette::Normal, QPalette::Highlight);
- DolphinController::drawHoverIndication(viewport(), m_dropRect, brush);
+ DragAndDropHelper::drawHoverIndication(viewport(), m_dropRect, brush);
}
}