From cb928888f7e8b0450fc8c4cf0dd4f5ea3c46eb42 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 22 Oct 2008 06:11:59 +0000 Subject: * don't show a tooltip if a rubberband selection is done * hide a tooltip if a drag operation has been started BUG: 173148 CCMAIL: simon@etotheipiplusone.com svn path=/trunk/KDE/kdebase/apps/; revision=874641 --- src/draganddrophelper.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/draganddrophelper.cpp') 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 #include @@ -27,7 +28,9 @@ #include #include -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; -- cgit v1.3