From fb3687e62ad0673ce6550f2b7423307f2fab8403 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sat, 8 Jun 2024 17:20:54 +0400 Subject: [PATCH] Set minimum width for Launch OpenMW button --- apps/launcher/maindialog.cpp | 4 +++- files/lang/launcher_de.ts | 2 +- files/lang/launcher_en.ts | 2 +- files/lang/launcher_fr.ts | 2 +- files/lang/launcher_ru.ts | 4 ++-- files/lang/launcher_sv.ts | 4 ++-- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 71bda1c1ef..07face085f 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -55,9 +55,11 @@ Launcher::MainDialog::MainDialog(const Files::ConfigurationManager& configuratio &MainDialog::wizardFinished); buttonBox->button(QDialogButtonBox::Close)->setText(tr("Close")); - 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::Ok)->setMinimumWidth(160); + // Order of buttons can be different on different setups, // so make sure that the Play button has a focus by default. buttonBox->button(QDialogButtonBox::Ok)->setFocus(); diff --git a/files/lang/launcher_de.ts b/files/lang/launcher_de.ts index aeaf6df57c..3d465cab0c 100644 --- a/files/lang/launcher_de.ts +++ b/files/lang/launcher_de.ts @@ -448,7 +448,7 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov - Launch OpenMW + Launch OpenMW diff --git a/files/lang/launcher_en.ts b/files/lang/launcher_en.ts index 0c968a1e68..019a526dca 100644 --- a/files/lang/launcher_en.ts +++ b/files/lang/launcher_en.ts @@ -448,7 +448,7 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov - Launch OpenMW + Launch OpenMW diff --git a/files/lang/launcher_fr.ts b/files/lang/launcher_fr.ts index 6e0b937614..e55458540e 100644 --- a/files/lang/launcher_fr.ts +++ b/files/lang/launcher_fr.ts @@ -448,7 +448,7 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Fermer - Launch OpenMW + Launch OpenMW Lancer OpenMW diff --git a/files/lang/launcher_ru.ts b/files/lang/launcher_ru.ts index 1835f0d560..49dbfb7211 100644 --- a/files/lang/launcher_ru.ts +++ b/files/lang/launcher_ru.ts @@ -450,8 +450,8 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Закрыть - Launch OpenMW - Запустить OpenMW + Launch OpenMW + Запустить OpenMW Help diff --git a/files/lang/launcher_sv.ts b/files/lang/launcher_sv.ts index ae18f7754c..60a057bd5e 100644 --- a/files/lang/launcher_sv.ts +++ b/files/lang/launcher_sv.ts @@ -451,8 +451,8 @@ de ordinarie fonterna i Morrowind. Bocka denna ruta om du ändå föredrar ordin Stäng - Launch OpenMW - Starta OpenMW + Launch OpenMW + Starta OpenMW Help