X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c161b895ffd8d62371ec288cf4105386350a8a3c..5d2b495c44746d37f5e281f46ac7ab6cd9702cc7:/src/dolphinurlnavigator.h diff --git a/src/dolphinurlnavigator.h b/src/dolphinurlnavigator.h index 1962e2f06..1387b567f 100644 --- a/src/dolphinurlnavigator.h +++ b/src/dolphinurlnavigator.h @@ -1,6 +1,6 @@ /* This file is part of the KDE project - SPDX-FileCopyrightText: 2020 Felix Ernst + SPDX-FileCopyrightText: 2020 Felix Ernst SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -36,7 +36,7 @@ public: */ DolphinUrlNavigator(const QUrl &url, QWidget *parent = nullptr); - virtual ~DolphinUrlNavigator(); + ~DolphinUrlNavigator() override; // TODO: Fix KUrlNavigator::sizeHint() instead. QSize sizeHint() const override; @@ -76,7 +76,17 @@ public: */ void setPlaceholderText(const QString &text); -public slots: + /** + * 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 * preferred in the Dolphin settings.