X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a85863befd616fe86669ac363d74fa7f466ca523..fc9e06426746b5b33d31db68904d4d205537a080:/src/dolphintabpage.h diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index 4a8bd365a..1e79fb5db 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -140,6 +140,18 @@ public: 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); @@ -201,6 +213,8 @@ private: bool m_primaryViewActive; bool m_splitViewEnabled; bool m_active; + /** @see setCustomLabel(). */ + QString m_customLabel; }; class DolphinTabPageSplitterHandle : public QSplitterHandle