Set minimum width for Launch OpenMW button

esm4-texture
Andrei Kortunov 7 months ago
parent 9087de1596
commit fb3687e62a

@ -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();

Loading…
Cancel
Save