]> cloud.milkyroute.net Git - dolphin.git/commitdiff
ViewPropertiesDialog: use action terms instead of Yes/No buttons
authorFriedrich W. H. Kossebau <kossebau@kde.org>
Sun, 3 Jul 2022 17:01:58 +0000 (19:01 +0200)
committerFriedrich W. H. Kossebau <kossebau@kde.org>
Sun, 3 Jul 2022 17:01:58 +0000 (19:01 +0200)
Yes/No buttons in dialogs are discouraged (not only) by KDE HIG
in favour of actions terms.

src/settings/viewpropertiesdialog.cpp

index 6e3cc81ab50a2983812b6c86bd47c8dcda10a528..0f182512c89ca6749b4d2ed255823e182573bcc4 100644 (file)
@@ -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;
         }