From 840ac231d3c4fcb0d84931ffb906a0e83da306e2 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Fri, 14 Jun 2019 13:23:16 -0400 Subject: [PATCH] tycho: reformat about window --- source/tycho/cc_source/menu.cc | 11 ++++++-- source/tycho/ui/about.ui | 47 ++++++++++++---------------------- 2 files changed, 26 insertions(+), 32 deletions(-) diff --git a/source/tycho/cc_source/menu.cc b/source/tycho/cc_source/menu.cc index 2c3e908..5419421 100644 --- a/source/tycho/cc_source/menu.cc +++ b/source/tycho/cc_source/menu.cc @@ -61,8 +61,15 @@ void Menu::openAbout() ui.setupUi(&dlg); - ui.labelVer->setText(tr(tychoVersion())); - ui.labelAuthors->setText(tr(tychoAuthors()).replace(':', '\n')); + auto text = ui.labelText->text(); + + text.replace("AUTHORS", + tr(tychoAuthors()).replace(':', ", ").toHtmlEscaped()); + text.replace("HOMEPAGE", tr(tychoHomepage())); + text.replace("REPOSITORY", tr(tychoRepository())); + text.replace("VERSION", tr(tychoVersion())); + + ui.labelText->setText(text); connect(ui.btnLicense, &QPushButton::clicked, this, [&](){ openLicense(&dlg); diff --git a/source/tycho/ui/about.ui b/source/tycho/ui/about.ui index 5d52f72..68b6000 100644 --- a/source/tycho/ui/about.ui +++ b/source/tycho/ui/about.ui @@ -10,7 +10,7 @@ 0 0 675 - 287 + 305 @@ -24,7 +24,7 @@ - + <img src="qrc:///tycho/misc/tycho2.png"/> @@ -33,38 +33,25 @@ - + - <h1>Tycho</h1> + <h1>Tycho</h1> +<h4>VERSION</h4> +<p>Tycho is a map editor for Marathon 2 and Marathon Infinity.</p> +<p>Marathon is Copyright © Bungie Software.</p> +<p>Tycho is public domain software under the CC0 license.</p> +<p>Home: <a href="HOMEPAGE">HOMEPAGE</a></p> +<p>Source code: <a href="REPOSITORY">REPOSITORY</a></p> +<p>Made by AUTHORS</p> - - - - - - VERSION NUMBER + + Qt::RichText - - - - - - Tycho is a map editor for Marathon 2 and Marathon Infinity. + + true - - - - - - Marathon is Copyright © Bungie Software. -Tycho is public domain software under the CC0 license. - - - - - - - AUTHORS + + Qt::TextBrowserInteraction