┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.cpp
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <[email protected]>2022-07-03 18:45:38 +0200
committerFriedrich W. H. Kossebau <[email protected]>2022-07-13 10:01:23 +0000
commita6f6b14e791f6ee82c5dbd8f112ed8b423d68ef6 (patch)
treec2be24b8866777a48baeede85cf9eea3fb1e6b0a /src/views/dolphinview.cpp
parent8a721c35fcd6393cbda17290ab7dd6891487de44 (diff)
Open >5 items dialog: use action terms instead of Yes/No buttons
Yes/No buttons in dialogs are discouraged (not only) by KDE HIG in favour of actions terms.
Diffstat (limited to 'src/views/dolphinview.cpp')
-rw-r--r--src/views/dolphinview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
index 5e7c63e82..0e97b8561 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -995,7 +995,10 @@ void DolphinView::slotItemsActivated(const KItemSet &indexes)
if (indexes.count() > 5) {
QString question = i18np("Are you sure you want to open 1 item?", "Are you sure you want to open %1 items?", indexes.count());
- const int answer = KMessageBox::warningYesNo(this, question);
+ const int answer = KMessageBox::warningYesNo(this, question, {},
+ KGuiItem(i18ncp("@action:button", "Open %1 Item", "Open %1 Items", indexes.count()),
+ QStringLiteral("document-open")),
+ KStandardGuiItem::cancel());
if (answer != KMessageBox::Yes) {
return;
}