1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-09 23:11:39 +00:00

Set minimum width for Launch OpenMW button

This commit is contained in:
Andrei Kortunov 2024-06-08 17:20:54 +04:00
parent 9087de1596
commit fb3687e62a
6 changed files with 10 additions and 8 deletions

View file

@ -58,6 +58,8 @@ Launcher::MainDialog::MainDialog(const Files::ConfigurationManager& configuratio
buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Launch OpenMW")); buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Launch OpenMW"));
buttonBox->button(QDialogButtonBox::Help)->setText(tr("Help")); buttonBox->button(QDialogButtonBox::Help)->setText(tr("Help"));
buttonBox->button(QDialogButtonBox::Ok)->setMinimumWidth(160);
// Order of buttons can be different on different setups, // Order of buttons can be different on different setups,
// so make sure that the Play button has a focus by default. // so make sure that the Play button has a focus by default.
buttonBox->button(QDialogButtonBox::Ok)->setFocus(); buttonBox->button(QDialogButtonBox::Ok)->setFocus();