mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-27 22:03:01 +00:00
ui/about: Add version information
This commit is contained in:
parent
1951fb62ee
commit
7ac5670d54
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);
|
||||||
}
|
}
|
||||||
|
|
50
ui/about.ui
50
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">
|
||||||
|
@ -152,17 +152,47 @@ QWidget[objectName="PaddleMeDaddy"] {
|
||||||
</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>
|
||||||
|
|
Loading…
Reference in a new issue