Add releaseName property to About namespace.

This commit is contained in:
Kalila L 2021-02-01 03:42:24 -05:00
parent 6a956c88f3
commit 8abfe2ead0
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,7 @@
// //
// Created by Vlad Stelmahovsky on 15/5/2018. // Created by Vlad Stelmahovsky on 15/5/2018.
// Copyright 2018 High Fidelity, Inc. // Copyright 2018 High Fidelity, Inc.
// Copyright 2021 Vircadia contributors.
// //
// Distributed under the Apache License, Version 2.0. // Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@ -40,6 +41,10 @@ QString AboutUtil::getBuildVersion() const {
return BuildInfo::VERSION; return BuildInfo::VERSION;
} }
QString AboutUtil::getReleaseName() const {
return BuildInfo::RELEASE_NAME;
}
QString AboutUtil::getQtVersion() const { QString AboutUtil::getQtVersion() const {
return qVersion(); return qVersion();
} }

View file

@ -30,12 +30,14 @@
* <em>Read-only.</em> * <em>Read-only.</em>
* @property {string} buildDate - The build date of Interface that is currently running. <em>Read-only.</em> * @property {string} buildDate - The build date of Interface that is currently running. <em>Read-only.</em>
* @property {string} buildVersion - The build version of Interface that is currently running. <em>Read-only.</em> * @property {string} buildVersion - The build version of Interface that is currently running. <em>Read-only.</em>
* @property {string} releaseName - The release codename of the version that Interface is currently running. <em>Read-only.</em>
* @property {string} qtVersion - The Qt version used in Interface that is currently running. <em>Read-only.</em> * @property {string} qtVersion - The Qt version used in Interface that is currently running. <em>Read-only.</em>
* *
* @example <caption>Report information on the version of Interface currently running.</caption> * @example <caption>Report information on the version of Interface currently running.</caption>
* print("Interface platform: " + About.platform); * print("Interface platform: " + About.platform);
* print("Interface build date: " + About.buildDate); * print("Interface build date: " + About.buildDate);
* print("Interface version: " + About.buildVersion); * print("Interface version: " + About.buildVersion);
* print("Interface release name: " + About.releaseName);
* print("Qt version: " + About.qtVersion); * print("Qt version: " + About.qtVersion);
*/ */
@ -66,6 +68,7 @@ class AboutUtil : public QObject {
Q_PROPERTY(QString platform READ getPlatformName CONSTANT) Q_PROPERTY(QString platform READ getPlatformName CONSTANT)
Q_PROPERTY(QString buildDate READ getBuildDate CONSTANT) Q_PROPERTY(QString buildDate READ getBuildDate CONSTANT)
Q_PROPERTY(QString buildVersion READ getBuildVersion CONSTANT) Q_PROPERTY(QString buildVersion READ getBuildVersion CONSTANT)
Q_PROPERTY(QString releaseName READ getReleaseName CONSTANT)
Q_PROPERTY(QString qtVersion READ getQtVersion CONSTANT) Q_PROPERTY(QString qtVersion READ getQtVersion CONSTANT)
public: public:
static AboutUtil* getInstance(); static AboutUtil* getInstance();
@ -74,6 +77,7 @@ public:
QString getPlatformName() const { return "Vircadia"; } QString getPlatformName() const { return "Vircadia"; }
QString getBuildDate() const; QString getBuildDate() const;
QString getBuildVersion() const; QString getBuildVersion() const;
QString getReleaseName() const;
QString getQtVersion() const; QString getQtVersion() const;
public slots: public slots: