X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/625599462a8ec82f0e43267d333b3ed74a4401bf..697d58e9727e229abb81956d27a05d1f02d8c775:/src/dolphintabpage.h diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index 5dafcd5dc..1e79fb5db 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -13,9 +13,7 @@ #include #include #include -#include #include -#include class DolphinNavigatorsWidgetAction; class DolphinViewContainer; @@ -142,9 +140,17 @@ public: void switchActiveView(); - void setTitle(const QString &name); + /** + * 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); - QString title(); + /** + * @see setCustomLabel. + */ + QString customLabel() const; Q_SIGNALS: void activeViewChanged(DolphinViewContainer *viewContainer); @@ -207,7 +213,8 @@ private: bool m_primaryViewActive; bool m_splitViewEnabled; bool m_active; - QString m_title; + /** @see setCustomLabel(). */ + QString m_customLabel; }; class DolphinTabPageSplitterHandle : public QSplitterHandle