From 046b41666a8ac1cb0f6aaf0daad0361728f3907e Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Mon, 13 May 2024 11:01:17 +0000 Subject: UrlNavigator: show a "lock" icon after the breadcrumb for read-only dir --- src/dolphinurlnavigator.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/dolphinurlnavigator.h') diff --git a/src/dolphinurlnavigator.h b/src/dolphinurlnavigator.h index 93a573105..1387b567f 100644 --- a/src/dolphinurlnavigator.h +++ b/src/dolphinurlnavigator.h @@ -76,6 +76,16 @@ public: */ void setPlaceholderText(const QString &text); + /** + * Sets the visibility of the read-only badge at the end of the breadcrumb. + */ + void setReadOnlyBadgeVisible(bool visible); + + /** + * Returns the visibility of the read-only badge at the end of the breadcrumb. + */ + bool readOnlyBadgeVisible() const; + public Q_SLOTS: /** * Switches to "breadcrumb" mode if the editable mode is not set to be -- cgit v1.3