From 47d31139224f9bfded4626803626a58afe3eb748 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 30 Mar 2010 20:19:32 +0000 Subject: Split the class DolphinController into the two classes DolphinViewController and ViewModeController. The ViewModeController offers a defined interface to control view mode implementations like icons view, details view and column view. The DolphinViewController allows those view mode implementations to control the parent DolphinView in a limited way. svn path=/trunk/KDE/kdebase/apps/; revision=1109228 --- src/draganddrophelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/draganddrophelper.cpp') diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp index 637117a2b..a85e3cb6a 100644 --- a/src/draganddrophelper.cpp +++ b/src/draganddrophelper.cpp @@ -20,7 +20,7 @@ #include "draganddrophelper.h" #include "dolphiniconsview.h" -#include "dolphincontroller.h" +#include "dolphinviewcontroller.h" #include #include @@ -53,7 +53,7 @@ bool DragAndDropHelper::isMimeDataSupported(const QMimeData* mimeData) const void DragAndDropHelper::startDrag(QAbstractItemView* itemView, Qt::DropActions supportedActions, - DolphinController* controller) + DolphinViewController* dolphinViewController) { // Do not start a new drag until the previous one has been finished. // This is a (possibly temporary) fix for bug #187884. @@ -70,8 +70,8 @@ void DragAndDropHelper::startDrag(QAbstractItemView* itemView, return; } - if (controller != 0) { - controller->emitHideToolTip(); + if (dolphinViewController != 0) { + dolphinViewController->requestToolTipHiding(); } QDrag* drag = new QDrag(itemView); -- cgit v1.3