┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2024-05-20 16:52:57 +0000
committerFelix Ernst <[email protected]>2024-05-20 16:52:57 +0000
commitba8a49bcc447eeb9b31616cb3c921f91d7471818 (patch)
treea80e3debdaa49a9e2392347683ec318cd22920f3
parent75273ed88bd464b611397495ada2204707dde625 (diff)
Add label to button for closing the admin bar
The exact effect of the button is not perfectly clear without a label because it could theoretically also have no effect other than dismissing the bar (which is not the case). This situation is clarified through this added label. The tooltip of the button is adapted to complement the new button label.
-rw-r--r--src/admin/bar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/admin/bar.cpp b/src/admin/bar.cpp
index 2b65127f6..554f55a52 100644
--- a/src/admin/bar.cpp
+++ b/src/admin/bar.cpp
@@ -41,8 +41,10 @@ Bar::Bar(QWidget *parent)
m_warningButton = new KContextualHelpButton(warningMessage(), nullptr, contenntsContainer);
m_warningButton->setIcon(QIcon::fromTheme(QStringLiteral("emblem-warning")));
- m_closeButton = new QPushButton(QIcon::fromTheme(QStringLiteral("window-close-symbolic")), "", contenntsContainer);
- m_closeButton->setToolTip(i18nc("@action:button", "Stop Acting as an Administrator"));
+ m_closeButton = new QPushButton(QIcon::fromTheme(QStringLiteral("window-close-symbolic")),
+ i18nc("@action:button Finish/Stop/Done acting as an admin", "Finish"),
+ contenntsContainer);
+ m_closeButton->setToolTip(i18nc("@info:tooltip", "Finish acting as an administrator"));
m_closeButton->setFlat(true);
connect(m_closeButton, &QAbstractButton::clicked, this, &Bar::activated); // Make sure the view connected to this bar is active before exiting admin mode.
connect(m_closeButton, &QAbstractButton::clicked, this, &WorkerIntegration::exitAdminMode);