X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/e5abe2c67bed7f1ca448cc94eb3abcfbe7d0da92..697d58e9727e229abb81956d27a05d1f02d8c775:/src/dolphintabpage.h diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index 0c691830e..1e79fb5db 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -138,6 +138,20 @@ public: */ void setActive(bool active); + void switchActiveView(); + + /** + * Overwrites the automatically generated label of this tab with @p label. + * This @p label will be kept until it is overwritten by calling this method again. + * Calling this with an empty string will restore the automatic labelling. + */ + void setCustomLabel(const QString &label); + + /** + * @see setCustomLabel. + */ + QString customLabel() const; + Q_SIGNALS: void activeViewChanged(DolphinViewContainer *viewContainer); void activeViewUrlChanged(const QUrl &url); @@ -170,8 +184,6 @@ private Q_SLOTS: */ void slotViewUrlRedirection(const QUrl &oldUrl, const QUrl &newUrl); - void switchActiveView(); - private: /** * Creates a new view container and does the default initialization. @@ -201,6 +213,8 @@ private: bool m_primaryViewActive; bool m_splitViewEnabled; bool m_active; + /** @see setCustomLabel(). */ + QString m_customLabel; }; class DolphinTabPageSplitterHandle : public QSplitterHandle