Skip to content

Commit

Permalink
Add version information to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
rinigus committed Jan 14, 2024
1 parent 94b89e3 commit a5bfae9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/qml/AboutPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ PagePL {
"<i>geocoder-nlp</i> github projects.") +
"</p>" +

"<br><b>" + qsTr("Versions of the used libraries") + "</b><br>" +
"<p>" + serverDBusRoot.VersionLibs.replace("\n", "\n<br>") +
"</p>" +

"<br><b>" + qsTr("Acknowledgments") + "</b><br><br>" +
"Used external projects:<br>" +
"<a href='http://libosmscout.sourceforge.net/'>libosmscout</a><br>" +
Expand Down Expand Up @@ -128,7 +132,7 @@ PagePL {
}

LabelPL {
text: qsTr("version") + ": " + programVersion
text: qsTr("Version") + ": " + programVersion
anchors.horizontalCenter: parent.horizontalCenter
color: styler.themeHighlightColor
}
Expand Down
6 changes: 6 additions & 0 deletions gui/src/serverdbusroot.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class ServerDBusRoot : public QDBusAbstractInterface
{
Q_OBJECT

public:
static inline const char *staticInterfaceName()
{ return DBUS_INTERFACE_ROOT; }
Expand All @@ -31,9 +32,14 @@ class ServerDBusRoot : public QDBusAbstractInterface

Q_PROPERTY(QString Version READ version NOTIFY reloadData)

Q_PROPERTY(QString VersionLibs READ versionLibs NOTIFY reloadData)

inline QString version() const
{ return qvariant_cast< QString >(property("Version")); }

inline QString versionLibs() const
{ return qvariant_cast< QString >(property("VersionLibs")); }

public Q_SLOTS:
inline void quit()
{
Expand Down

0 comments on commit a5bfae9

Please sign in to comment.