From 4a4bc1c8f39e39aacba0a58a41a6fa8cbc63e4b0 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 7 Jul 2018 22:59:26 +0200 Subject: core: add version variables to qPref and make it qml loadable add canonical_version and mobile_version to qPref Having a property in qPref, allows the use in qml, and prepare the interface for qml testing. Signed-off-by: Jan Iversen --- core/settings/qPref.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/settings/qPref.h') diff --git a/core/settings/qPref.h b/core/settings/qPref.h index 44dc6e075..e0e21ad6e 100644 --- a/core/settings/qPref.h +++ b/core/settings/qPref.h @@ -11,6 +11,8 @@ class qPref : public QObject { Q_OBJECT Q_ENUMS(cloud_status); + Q_PROPERTY(QString canonical_version READ canonical_version); + Q_PROPERTY(QString mobile_version READ mobile_version); public: qPref(QObject *parent = NULL); @@ -28,6 +30,8 @@ public: CS_NOCLOUD }; + const QString canonical_version() const; + const QString mobile_version() const; private: }; -- cgit v1.2.3-70-g09d2