Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Dec 18, 2020
1 parent c5b2f53 commit 41a9f53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 37 deletions.
28 changes: 0 additions & 28 deletions 3rdparty/TaoCommon/Common/JsonSerialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,13 @@ 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)
AUTO_PROPERTY(QStringList, customs, {})
JsonSerialize_Begin()
JsonProperty(appName)
JsonProperty(appVersion)
JsonProperty(latestVersion)
JsonProperty(buildDateTime)
JsonProperty(buildRevision)
JsonProperty(copyRight)
JsonProperty(descript)
JsonProperty(compilerVendor)
JsonProperty(splashShow)
JsonProperty(scale)
JsonProperty(ratio)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
18 changes: 9 additions & 9 deletions 3rdparty/TaoCommon/Common/PropertyHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
};
Expand Down

0 comments on commit 41a9f53

Please sign in to comment.