]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabpage.h
SVN_SILENT made messages (.desktop file) - always resolve ours
[dolphin.git] / src / dolphintabpage.h
index 4a8bd365a56a14bdf5042441fbabfb6e4034b047..1e79fb5db071f48c68f95c06faedcb2a033064db 100644 (file)
@@ -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