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.Twitch="Twitch Subscriber"
UI.About.Role.Creator="Content Creator"
UI.About.Version="Version:"
# Blur
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->setSizePolicy(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Maximum);
// Update the Version information.
version->setText(STREAMFX_VERSION_STRING);
// Make the OK button do things.
connect(buttonBox, &QDialogButtonBox::accepted, this, &streamfx::ui::about::on_ok);
}

View file

@ -128,7 +128,7 @@ QWidget[objectName=&quot;PaddleMeDaddy&quot;] {
<x>0</x>
<y>0</y>
<width>492</width>
<height>282</height>
<height>280</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
@ -152,17 +152,47 @@ QWidget[objectName=&quot;PaddleMeDaddy&quot;] {
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>10</number>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
<property name="topMargin">
<number>0</number>
</property>
<property name="centerButtons">
<bool>false</bool>
</property>
</widget>
<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>
<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>
</layout>
</widget>