┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/draganddrophelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/draganddrophelper.cpp')
-rw-r--r--src/draganddrophelper.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp
index ab674cd5c..6d8854d2d 100644
--- a/src/draganddrophelper.cpp
+++ b/src/draganddrophelper.cpp
@@ -19,6 +19,7 @@
#include "draganddrophelper.h"
#include "dolphiniconsview.h"
+#include "dolphincontroller.h"
#include <kdirmodel.h>
#include <kicon.h>
@@ -27,7 +28,9 @@
#include <QAbstractProxyModel>
#include <QDrag>
-void DragAndDropHelper::startDrag(QAbstractItemView* itemView, Qt::DropActions supportedActions)
+void DragAndDropHelper::startDrag(QAbstractItemView* itemView,
+ Qt::DropActions supportedActions,
+ DolphinController* controller)
{
QModelIndexList indexes = itemView->selectionModel()->selectedIndexes();
if (indexes.count() > 0) {
@@ -35,6 +38,10 @@ void DragAndDropHelper::startDrag(QAbstractItemView* itemView, Qt::DropActions s
if (data == 0) {
return;
}
+
+ if (controller != 0) {
+ controller->emitHideToolTip();
+ }
QDrag* drag = new QDrag(itemView);
QPixmap pixmap;