summaryrefslogtreecommitdiffstats
path: root/src/dialog
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2021-04-29 22:58:08 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2021-04-30 11:27:00 +0200
commita6163ca2722a858413446458b8fb1a057c4f3ed6 (patch)
treee00d1ad7b865bba83ef6ea6eb259874801ed6fd1 /src/dialog
parent5e9e692b358c41d9e67384147cc5a751f4d49880 (diff)
DlgAbout: Add git commit date to about dialog
Diffstat (limited to 'src/dialog')
-rw-r--r--src/dialog/dlgabout.cpp3
-rw-r--r--src/dialog/dlgaboutdlg.ui40
2 files changed, 30 insertions, 13 deletions
diff --git a/src/dialog/dlgabout.cpp b/src/dialog/dlgabout.cpp
index 735307b35c..4389c89945 100644
--- a/src/dialog/dlgabout.cpp
+++ b/src/dialog/dlgabout.cpp
@@ -1,6 +1,7 @@
#include "dialog/dlgabout.h"
#include <QFile>
+#include <QLocale>
#include "defs_urls.h"
#include "moc_dlgabout.cpp"
@@ -17,6 +18,8 @@ DlgAbout::DlgAbout(QWidget* parent) : QDialog(parent), Ui::DlgAboutDlg() {
QStringLiteral(" ") + VersionStore::version());
git_version_label->setText(VersionStore::gitVersion());
platform_label->setText(VersionStore::platform());
+ QLocale locale;
+ date_label->setText(locale.toString(VersionStore::date().toLocalTime(), QLocale::LongFormat));
QFile licenseFile(":/LICENSE");
if (!licenseFile.open(QIODevice::ReadOnly)) {
diff --git a/src/dialog/dlgaboutdlg.ui b/src/dialog/dlgaboutdlg.ui
index 045737e9d1..f2b28092be 100644
--- a/src/dialog/dlgaboutdlg.ui
+++ b/src/dialog/dlgaboutdlg.ui
@@ -78,19 +78,20 @@
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
- <item row="0" column="1">
- <widget class="QLabel" name="git_version_label">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
+ <item row="2" 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_2">
+ <property name="text">
+ <string>Git Commit Date:</string>
+ </property>
+ </widget>
+ </item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
@@ -104,17 +105,30 @@
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QLabel" name="platform_label">
+ <item row="2" column="0">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Platform:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLabel" name="git_version_label">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_3">
+ <item row="1" column="1">
+ <widget class="QLabel" name="date_label">
<property name="text">
- <string>Platform:</string>
+ <string>Unknown</string>
</property>
</widget>
</item>