mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 17:01:22 +00:00
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.
This commit is contained in:
parent
7b4644c084
commit
f3a0986b8b
|
@ -348,7 +348,9 @@ void ViewPropertiesDialog::applyViewProperties()
|
||||||
const bool applyToSubFolders = m_applyToSubFolders && m_applyToSubFolders->isChecked();
|
const bool applyToSubFolders = m_applyToSubFolders && m_applyToSubFolders->isChecked();
|
||||||
if (applyToSubFolders) {
|
if (applyToSubFolders) {
|
||||||
const QString text(i18nc("@info", "The view properties of all sub-folders will be changed. Do you want to continue?"));
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -380,7 +382,9 @@ void ViewPropertiesDialog::applyViewProperties()
|
||||||
|
|
||||||
if (applyToAllFolders) {
|
if (applyToAllFolders) {
|
||||||
const QString text(i18nc("@info", "The view properties of all folders will be changed. Do you want to continue?"));
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue