Commit f3a0986b authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

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.
parent 7b4644c0
Pipeline #200153 passed with stage
in 16 minutes and 16 seconds
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment