diff options
| author | ambar chakravartty <[email protected]> | 2025-02-02 04:49:11 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2025-02-06 14:32:35 +0000 |
| commit | bb163a7b3dc7857f698150460b33ba8f3f2204f9 (patch) | |
| tree | 90a6be4cea3bf0908bc011f70a71d8299eeccaa7 /src/dolphintabpage.h | |
| parent | 0bf31bd847d28485d3a2115b0ce9e794654a053b (diff) | |
Made style and context enhancements
Co-authored by: Felix Ernst
Diffstat (limited to 'src/dolphintabpage.h')
| -rw-r--r-- | src/dolphintabpage.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index 1b918c248..1e79fb5db 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -140,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() const; + /** + * @see setCustomLabel. + */ + QString customLabel() const; Q_SIGNALS: void activeViewChanged(DolphinViewContainer *viewContainer); @@ -205,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 |
