From 41a9f53ea5f88061032a4c9d5e0f2dd44101ed42 Mon Sep 17 00:00:00 2001 From: jared Date: Fri, 18 Dec 2020 12:40:40 +0800 Subject: [PATCH] update comment --- 3rdparty/TaoCommon/Common/JsonSerialize.h | 28 ---------------------- 3rdparty/TaoCommon/Common/PropertyHelper.h | 18 +++++++------- 2 files changed, 9 insertions(+), 37 deletions(-) diff --git a/3rdparty/TaoCommon/Common/JsonSerialize.h b/3rdparty/TaoCommon/Common/JsonSerialize.h index 02b4c3cf..c8a53720 100644 --- a/3rdparty/TaoCommon/Common/JsonSerialize.h +++ b/3rdparty/TaoCommon/Common/JsonSerialize.h @@ -84,13 +84,6 @@ class AppInfo : public QObject Q_OBJECT AUTO_PROPERTY(QString, appName, "") - AUTO_PROPERTY(QString, appVersion, "") - AUTO_PROPERTY(QString, latestVersion, "") - AUTO_PROPERTY(QString, buildDateTime, "") - AUTO_PROPERTY(QString, buildRevision, "") - AUTO_PROPERTY(QString, copyRight, "") - AUTO_PROPERTY(QString, descript, "") - AUTO_PROPERTY(QString, compilerVendor, "") AUTO_PROPERTY(bool, splashShow, false) AUTO_PROPERTY(float, scale, 1.0f) AUTO_PROPERTY(double, ratio, 14.0 / 9.0) @@ -98,13 +91,6 @@ class AppInfo : public QObject JsonSerialize_Begin() JsonProperty(appName) - JsonProperty(appVersion) - JsonProperty(latestVersion) - JsonProperty(buildDateTime) - JsonProperty(buildRevision) - JsonProperty(copyRight) - JsonProperty(descript) - JsonProperty(compilerVendor) JsonProperty(splashShow) JsonProperty(scale) JsonProperty(ratio) @@ -113,13 +99,6 @@ class AppInfo : public QObject JsonDeserialize_Begin(AppInfo) JsonDeserializeProperty(appName) - JsonDeserializeProperty(appVersion) - JsonDeserializeProperty(latestVersion) - JsonDeserializeProperty(buildDateTime) - JsonDeserializeProperty(buildRevision) - JsonDeserializeProperty(copyRight) - JsonDeserializeProperty(descript) - JsonDeserializeProperty(compilerVendor) JsonDeserializeProperty(splashShow) JsonDeserializeProperty(scale) JsonDeserializeProperty(ratio) @@ -129,13 +108,6 @@ class AppInfo : public QObject JsonPartialDeserialize_Begin(AppInfo) JsonDeserializeProperty(appName) - JsonDeserializeProperty(appVersion) - JsonDeserializeProperty(latestVersion) - JsonDeserializeProperty(buildDateTime) - JsonDeserializeProperty(buildRevision) - JsonDeserializeProperty(copyRight) - JsonDeserializeProperty(descript) - JsonDeserializeProperty(compilerVendor) JsonDeserializeProperty(splashShow) JsonDeserializeProperty(scale) JsonDeserializeProperty(ratio) diff --git a/3rdparty/TaoCommon/Common/PropertyHelper.h b/3rdparty/TaoCommon/Common/PropertyHelper.h index e516f591..48d024cb 100644 --- a/3rdparty/TaoCommon/Common/PropertyHelper.h +++ b/3rdparty/TaoCommon/Common/PropertyHelper.h @@ -75,16 +75,16 @@ class AppInfo : public QObject { Q_OBJECT -AUTO_PROPERTY(QString, appName, "") -AUTO_PROPERTY(QString, descript, "") -AUTO_PROPERTY(QString, compilerVendor, "") -AUTO_PROPERTY(bool, splashShow, false) -AUTO_PROPERTY(float, scale, 1.0f) -AUTO_PROPERTY(double, ratio, 14.0 / 9.0) -AUTO_PROPERTY(QStringList, customs, {}) + AUTO_PROPERTY(QString, appName, "") + AUTO_PROPERTY(QString, descript, "") + AUTO_PROPERTY(QString, compilerVendor, "") + AUTO_PROPERTY(bool, splashShow, false) + AUTO_PROPERTY(float, scale, 1.0f) + AUTO_PROPERTY(double, ratio, 14.0 / 9.0) + AUTO_PROPERTY(QStringList, customs, {}) public: -explicit AppInfo(QObject *parent = nullptr); -virtual ~AppInfo() override; + explicit AppInfo(QObject *parent = nullptr); + virtual ~AppInfo() override; public: };