┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/places/placespanel.cpp4
-rw-r--r--src/panels/places/placespanel.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp
index eaf2642eb..ba3451bd5 100644
--- a/src/panels/places/placespanel.cpp
+++ b/src/panels/places/placespanel.cpp
@@ -15,6 +15,7 @@
#include "dolphin_placespanelsettings.h"
#include "dolphinplacesmodelsingleton.h"
#include "settings/dolphinsettingsdialog.h"
+#include "views/draganddrophelper.h"
#include <KFilePlacesModel>
#include <KIO/DropJob>
@@ -31,7 +32,6 @@
PlacesPanel::PlacesPanel(QWidget *parent)
: KFilePlacesView(parent)
- , m_dragAndDropHelper(this)
{
setDropOnPlaceEnabled(true);
connect(this, &PlacesPanel::urlsDropped, this, &PlacesPanel::slotUrlsDropped);
@@ -161,7 +161,7 @@ void PlacesPanel::dragMoveEvent(QDragMoveEvent *event)
if (!url.isValid() || !KProtocolManager::supportsWriting(url)) {
event->setDropAction(Qt::IgnoreAction);
} else {
- m_dragAndDropHelper.updateDropAction(event, url);
+ DragAndDropHelper::updateDropAction(event, url);
}
}
}
diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h
index d21e7d64e..cbd5fc224 100644
--- a/src/panels/places/placespanel.h
+++ b/src/panels/places/placespanel.h
@@ -10,7 +10,6 @@
#define PLACESPANEL_H
#include "panels/panel.h"
-#include "views/draganddrophelper.h"
#include <KFilePlacesView>
#include <QUrl>
@@ -79,8 +78,6 @@ private:
QAction *m_configureTrashAction;
QAction *m_openInSplitView;
QAction *m_lockPanelsAction;
-
- DragAndDropHelper m_dragAndDropHelper;
};
#endif // PLACESPANEL_H