mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 08:15:06 +00:00
ui/about: Add version information
This commit is contained in:
parent
54fc987f51
commit
a26827f614
3 changed files with 44 additions and 10 deletions
|
@ -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"
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
32
ui/about.ui
32
ui/about.ui
|
@ -128,7 +128,7 @@ QWidget[objectName="PaddleMeDaddy"] {
|
||||||
<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="PaddleMeDaddy"] {
|
||||||
</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="PaddleMeDaddy"] {
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="streamfx.qrc"/>
|
<include location="streamfx.qrc"/>
|
||||||
|
|
Loading…
Reference in a new issue