ui/about: Add version information

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-05-12 05:23:57 +02:00
parent 1951fb62ee
commit 7ac5670d54
3 changed files with 44 additions and 10 deletions

View file

@ -43,6 +43,7 @@ UI.About.Role.Supporter.Github="Github Sponsor"
UI.About.Role.Supporter.Patreon="Patreon Supporter" UI.About.Role.Supporter.Patreon="Patreon Supporter"
UI.About.Role.Supporter.Twitch="Twitch Subscriber" UI.About.Role.Supporter.Twitch="Twitch Subscriber"
UI.About.Role.Creator="Content Creator" UI.About.Role.Creator="Content Creator"
UI.About.Version="Version:"
# Blur # Blur
Blur.Type.Box="Box" Blur.Type.Box="Box"

View file

@ -192,6 +192,9 @@ streamfx::ui::about::about() : QDialog(reinterpret_cast<QWidget*>(obs_frontend_g
content_layout->setColumnStretch(1, 1); content_layout->setColumnStretch(1, 1);
content->setSizePolicy(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Maximum); content->setSizePolicy(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Maximum);
// Update the Version information.
version->setText(STREAMFX_VERSION_STRING);
// Make the OK button do things. // Make the OK button do things.
connect(buttonBox, &QDialogButtonBox::accepted, this, &streamfx::ui::about::on_ok); connect(buttonBox, &QDialogButtonBox::accepted, this, &streamfx::ui::about::on_ok);
} }

View file

@ -128,7 +128,7 @@ QWidget[objectName=&quot;PaddleMeDaddy&quot;] {
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>492</width> <width>492</width>
<height>282</height> <height>280</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
@ -152,17 +152,47 @@ QWidget[objectName=&quot;PaddleMeDaddy&quot;] {
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="orientation"> <property name="spacing">
<enum>Qt::Horizontal</enum> <number>10</number>
</property> </property>
<property name="standardButtons"> <property name="topMargin">
<set>QDialogButtonBox::Ok</set> <number>0</number>
</property> </property>
<property name="centerButtons"> <item>
<bool>false</bool> <widget class="QLabel" name="label">
</property> <property name="styleSheet">
</widget> <string notr="true">color: hsl(0, 0%, 50%);</string>
</property>
<property name="text">
<string>StreamFX::UI.About.Version</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="version">
<property name="styleSheet">
<string notr="true">color: hsl(0, 0%, 50%);</string>
</property>
<property name="text">
<string>0.0.0.0-DEADBEEF</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
</property>
<property name="centerButtons">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>