About dialog: Use EMU_NAME instead of hardcoding "86Box"

This commit is contained in:
Alexander Babikov
2025-11-25 05:12:10 +05:00
parent d71bcc731d
commit 59a14ac3eb
25 changed files with 49 additions and 121 deletions

View File

@@ -48,9 +48,9 @@ About::About(QWidget *parent)
# define DYNAREC_STR "no dynarec"
#endif
versioninfo.append(QString(" [%1, %2]").arg(QSysInfo::buildCpuArchitecture(), tr(DYNAREC_STR)));
setText(QString("<b>%3%1%2</b>").arg(EMU_VERSION_FULL, versioninfo, tr("86Box v")));
setText(QString("<b>%1 v%2%3</b>").arg(EMU_NAME, EMU_VERSION_FULL, versioninfo));
setInformativeText(tr("An emulator of old computers\n\nAuthors: Miran Grča (OBattler), RichardG867, Jasmine Iwanek, TC1995, coldbrewed, Teemu Korhonen (Manaatti), Joakim L. Gilje, Adrien Moulin (elyosh), Daniel Balsom (gloriouscow), Cacodemon345, Fred N. van Kempen (waltje), Tiseno100, reenigne, and others.\n\nWith previous core contributions from Sarah Walker, leilei, JohnElliott, greatpsycho, and others.\n\nReleased under the GNU General Public License version 2 or later. See LICENSE for more information.").replace("\n", "<br>"));
setWindowTitle(tr("About 86Box"));
setWindowTitle(tr("About %1").arg(EMU_NAME));
const auto closeButton = addButton("OK", QMessageBox::ButtonRole::AcceptRole);
setEscapeButton(closeButton);
const auto webSiteButton = addButton(EMU_SITE, QMessageBox::ButtonRole::HelpRole);