ui/about: Add version information

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-05-12 05:23:57 +02:00 committed by Michael Fabian Dirks
parent 54fc987f51
commit a26827f614
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">
@ -151,6 +151,34 @@ QWidget[objectName=&quot;PaddleMeDaddy&quot;] {
</widget> </widget>
</widget> </widget>
</item> </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>10</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<property name="styleSheet">
<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> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">
@ -165,6 +193,8 @@ QWidget[objectName=&quot;PaddleMeDaddy&quot;] {
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
<resources> <resources>
<include location="streamfx.qrc"/> <include location="streamfx.qrc"/>