X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/5a0cedd4a8e118bfa9d67c313a4c7be26439a816..9b99cefca572a8c8e11fae4178d23706b48d586e:/src/sidebartreeview.cpp 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 #include @@ -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); } }