┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/draganddrophelper.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-10-22 06:11:59 +0000
committerPeter Penz <[email protected]>2008-10-22 06:11:59 +0000
commitcb928888f7e8b0450fc8c4cf0dd4f5ea3c46eb42 (patch)
tree11f24e2eddef75394832fed82415aa6ad1b004f8 /src/draganddrophelper.cpp
parent4516323b9b63893792395ff065fb09239828add9 (diff)
* don't show a tooltip if a rubberband selection is done
* hide a tooltip if a drag operation has been started BUG: 173148 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=874641
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;