X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c035e95e1d74fecd8267b08009c616232e2c16b0..781e8e9e18579c0fe368ed9fe295f908493272b3:/src/dolphintabwidget.h diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h index 22f65b634..ca101e2db 100644 --- a/src/dolphintabwidget.h +++ b/src/dolphintabwidget.h @@ -132,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. @@ -208,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. @@ -222,6 +229,13 @@ private Q_SLOTS: void currentTabChanged(int index); + /** + * Calls DolphinTabPage::setCustomLabel(label) for the tab at @p index + * and propagates that change to the DolphinTabBar. + * @see DolphinTabPage::setCustomLabel(). + */ + void renameTab(int index, const QString &label); + protected: void tabInserted(int index) override; void tabRemoved(int index) override;