1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-06 18:32:45 +00:00

Propagate version number from yaml to QML

* The application now will use the version number from the Spectacle
  yaml in HTTP-requests and display it in the about page as well.
This commit is contained in:
Chris Josten 2020-09-27 22:41:35 +02:00
parent 419e97a882
commit 4a9be69c07
5 changed files with 27 additions and 6 deletions

View file

@ -73,6 +73,7 @@ public:
Q_PROPERTY(QString baseUrl MEMBER m_baseUrl READ baseUrl NOTIFY baseUrlChanged)
Q_PROPERTY(bool authenticated READ authenticated WRITE setAuthenticated NOTIFY authenticatedChanged)
Q_PROPERTY(QString userId READ userId NOTIFY userIdChanged)
Q_PROPERTY(QString version READ version)
/*QNetworkReply *handleRequest(QString path, QStringList sort, Pagination *pagination,
QVariantMap filters, QStringList fields, QStringList expand, QString id);*/
@ -101,6 +102,7 @@ public:
QString &userId() { return m_userId; }
QJsonObject &deviceProfile() { return m_deviceProfile; }
QJsonObject &playbackDeviceProfile() { return m_playbackDeviceProfile; }
QString version() const { return QString(m_version); }
signals:
/*
* Emitted when the server requires authentication. Please authenticate your user via authenticate.