tycho: reformat about window
parent
8ff9d466e1
commit
840ac231d3
|
@ -61,8 +61,15 @@ void Menu::openAbout()
|
||||||
|
|
||||||
ui.setupUi(&dlg);
|
ui.setupUi(&dlg);
|
||||||
|
|
||||||
ui.labelVer->setText(tr(tychoVersion()));
|
auto text = ui.labelText->text();
|
||||||
ui.labelAuthors->setText(tr(tychoAuthors()).replace(':', '\n'));
|
|
||||||
|
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, [&](){
|
connect(ui.btnLicense, &QPushButton::clicked, this, [&](){
|
||||||
openLicense(&dlg);
|
openLicense(&dlg);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>675</width>
|
<width>675</width>
|
||||||
<height>287</height>
|
<height>305</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="labelImage">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><img src="qrc:///tycho/misc/tycho2.png"/></string>
|
<string><img src="qrc:///tycho/misc/tycho2.png"/></string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -33,38 +33,25 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="labelText">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><h1>Tycho</h1></string>
|
<string><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></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="textFormat">
|
||||||
</item>
|
<enum>Qt::RichText</enum>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="labelVer">
|
|
||||||
<property name="text">
|
|
||||||
<string>VERSION NUMBER</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="openExternalLinks">
|
||||||
</item>
|
<bool>true</bool>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_4">
|
|
||||||
<property name="text">
|
|
||||||
<string>Tycho is a map editor for Marathon 2 and Marathon Infinity.</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="textInteractionFlags">
|
||||||
</item>
|
<set>Qt::TextBrowserInteraction</set>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_5">
|
|
||||||
<property name="text">
|
|
||||||
<string>Marathon is Copyright © Bungie Software.
|
|
||||||
Tycho is public domain software under the CC0 license.</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="labelAuthors">
|
|
||||||
<property name="text">
|
|
||||||
<string>AUTHORS</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in New Issue