]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabwidget.h
Add option to completely disable directory size counting
[dolphin.git] / src / dolphintabwidget.h
index 1bdb6c9a187f3daee8dcc7fd0cf72e143d908387..a02c8fb841b6ce25cba94fafd42fd0e931ca9f11 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "dolphinnavigatorswidgetaction.h"
 #include "dolphintabpage.h"
+#include "views/draganddrophelper.h"
 
 #include <QTabWidget>
 #include <QUrl>
@@ -111,6 +112,11 @@ Q_SIGNALS:
      */
     void currentUrlChanged(const QUrl &url);
 
+    /**
+     * Is emitted when the url of any tab has been changed (including the current tab).
+     */
+    void urlChanged(const QUrl &url);
+
 public Q_SLOTS:
     /**
      * Opens a new view with the current URL that is part of a tab and activates
@@ -203,6 +209,12 @@ private Q_SLOTS:
      */
     void openNewActivatedTab(int index);
 
+    /**
+     * Is connected to the KTabBar signal receivedDragMoveEvent.
+     * Allows dragging and dropping files onto tabs.
+     */
+    void tabDragMoveEvent(int tab, QDragMoveEvent *event);
+
     /**
      * Is connected to the KTabBar signal receivedDropEvent.
      * Allows dragging and dropping files onto tabs.
@@ -265,6 +277,8 @@ private:
      */
     const std::optional<const ViewIndex> viewShowingItem(const QUrl &item) const;
 
+    DragAndDropHelper m_dragAndDropHelper;
+
 private:
     QPointer<DolphinTabPage> m_lastViewedTab;
     QPointer<DolphinNavigatorsWidgetAction> m_navigatorsWidget;