[GUI] Rename Cancel ‘Close’ in Add Property dialog

This commit is contained in:
xtemp09
2025-12-08 18:15:33 +07:00
committed by Kacper Donat
parent d55d8d1dac
commit df6d148a85
2 changed files with 3 additions and 3 deletions

View File

@@ -512,8 +512,8 @@ void DlgAddProperty::setTitle()
void DlgAddProperty::setAddEnabled(bool enabled)
{
QPushButton* addButton = ui->buttonBox->button(QDialogButtonBox::Ok);
QPushButton* cancelButton = ui->buttonBox->button(QDialogButtonBox::Cancel);
cancelButton->setDefault(!enabled);
QPushButton* closeButton = ui->buttonBox->button(QDialogButtonBox::Close);
closeButton->setDefault(!enabled);
addButton->setDefault(enabled);
addButton->setEnabled(enabled);
}

View File

@@ -75,7 +75,7 @@
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
<set>QDialogButtonBox::StandardButton::Close|QDialogButtonBox::StandardButton::Ok</set>
</property>
</widget>
</item>