┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/viewpropertiesdialog.cpp
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <[email protected]>2022-07-03 19:01:58 +0200
committerFriedrich W. H. Kossebau <[email protected]>2022-07-03 19:01:58 +0200
commitf3a0986b8b1addabb93323ac850060ffa0a8c5bd (patch)
treea767b5202d70359ad349b6954c790b7ec616af60 /src/settings/viewpropertiesdialog.cpp
parent7b4644c0842697b8fb56f23dbce6d7fcc6fec67e (diff)
ViewPropertiesDialog: 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/settings/viewpropertiesdialog.cpp')
-rw-r--r--src/settings/viewpropertiesdialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/settings/viewpropertiesdialog.cpp b/src/settings/viewpropertiesdialog.cpp
index 6e3cc81ab..0f182512c 100644
--- a/src/settings/viewpropertiesdialog.cpp
+++ b/src/settings/viewpropertiesdialog.cpp
@@ -348,7 +348,9 @@ void ViewPropertiesDialog::applyViewProperties()
const bool applyToSubFolders = m_applyToSubFolders && m_applyToSubFolders->isChecked();
if (applyToSubFolders) {
const QString text(i18nc("@info", "The view properties of all sub-folders will be changed. Do you want to continue?"));
- if (KMessageBox::questionYesNo(this, text) == KMessageBox::No) {
+ if (KMessageBox::questionYesNo(this, text, {},
+ KStandardGuiItem::cont(),
+ KStandardGuiItem::cancel()) == KMessageBox::No) {
return;
}
@@ -380,7 +382,9 @@ void ViewPropertiesDialog::applyViewProperties()
if (applyToAllFolders) {
const QString text(i18nc("@info", "The view properties of all folders will be changed. Do you want to continue?"));
- if (KMessageBox::questionYesNo(this, text) == KMessageBox::No) {
+ if (KMessageBox::questionYesNo(this, text, {},
+ KStandardGuiItem::cont(),
+ KStandardGuiItem::cancel()) == KMessageBox::No) {
return;
}