]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabwidget.h
KFileItemModelRolesUpdater: add utility cacheSize function
[dolphin.git] / src / dolphintabwidget.h
index a02c8fb841b6ce25cba94fafd42fd0e931ca9f11..52d3fd626889ad4ab7f14633522b0e24fe5cfc84 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "dolphinnavigatorswidgetaction.h"
 #include "dolphintabpage.h"
-#include "views/draganddrophelper.h"
 
 #include <QTabWidget>
 #include <QUrl>
@@ -133,10 +132,11 @@ public Q_SLOTS:
     /**
      * Opens a new tab in the background showing the URL \a primaryUrl and the
      * optional URL \a secondaryUrl.
+     * @return A pointer to the opened DolphinTabPage.
      */
-    void openNewTab(const QUrl &primaryUrl,
-                    const QUrl &secondaryUrl = QUrl(),
-                    DolphinTabWidget::NewTabPosition position = DolphinTabWidget::NewTabPosition::FollowSetting);
+    DolphinTabPage *openNewTab(const QUrl &primaryUrl,
+                               const QUrl &secondaryUrl = QUrl(),
+                               DolphinTabWidget::NewTabPosition position = DolphinTabWidget::NewTabPosition::FollowSetting);
 
     /**
      * Opens each directory in \p dirs in a separate tab unless it is already open.
@@ -277,8 +277,6 @@ private:
      */
     const std::optional<const ViewIndex> viewShowingItem(const QUrl &item) const;
 
-    DragAndDropHelper m_dragAndDropHelper;
-
 private:
     QPointer<DolphinTabPage> m_lastViewedTab;
     QPointer<DolphinNavigatorsWidgetAction> m_navigatorsWidget;