summaryrefslogtreecommitdiffstats
path: root/src/dialog
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2021-04-28 13:56:16 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2021-04-28 14:46:54 +0200
commit7c3972c0a3ad18d42d75c84e472d4bc256c1f96c (patch)
tree1936869ea22386c10a1e30c38dd0efc6e642cb7d /src/dialog
parentf57f7a2dd8d5983e93af420ed9a562307fdc3ed6 (diff)
VersionStore: Replace applicationTitle() method with platform()
Always show the application name in the window title (without platform information). The platform information is now shown in the About dialog.
Diffstat (limited to 'src/dialog')
-rw-r--r--src/dialog/dlgabout.cpp1
-rw-r--r--src/dialog/dlgaboutdlg.ui14
2 files changed, 15 insertions, 0 deletions
diff --git a/src/dialog/dlgabout.cpp b/src/dialog/dlgabout.cpp
index 23003a132d..735307b35c 100644
--- a/src/dialog/dlgabout.cpp
+++ b/src/dialog/dlgabout.cpp
@@ -16,6 +16,7 @@ DlgAbout::DlgAbout(QWidget* parent) : QDialog(parent), Ui::DlgAboutDlg() {
version_label->setText(VersionStore::applicationName() +
QStringLiteral(" ") + VersionStore::version());
git_version_label->setText(VersionStore::gitVersion());
+ platform_label->setText(VersionStore::platform());
QFile licenseFile(":/LICENSE");
if (!licenseFile.open(QIODevice::ReadOnly)) {
diff --git a/src/dialog/dlgaboutdlg.ui b/src/dialog/dlgaboutdlg.ui
index fc53c5320f..045737e9d1 100644
--- a/src/dialog/dlgaboutdlg.ui
+++ b/src/dialog/dlgaboutdlg.ui
@@ -104,6 +104,20 @@
</property>
</widget>
</item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="platform_label">
+ <property name="text">
+ <string>Unknown</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Platform:</string>
+ </property>
+ </widget>
+ </item>
</layout>
</item>
</layout>