1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-02-06 21:48:24 +08:00

update format

This commit is contained in:
jared 2020-10-24 12:11:53 +08:00
parent 38a49205de
commit 169e9c8a8f
3 changed files with 58 additions and 90 deletions

View File

@ -18,10 +18,7 @@ void AppInfo::beforeUiReady(QQmlContext *ctx)
ctx->setContextProperty("appInfo", this);
}
void AppInfo::afterUiReady()
{
}
void AppInfo::afterUiReady() {}
void AppInfo::setAppName(const QString &appName)
{

View File

@ -8,12 +8,16 @@ class AppInfo : public QObject
Q_OBJECT
Q_PROPERTY(QString appName READ appName WRITE setAppName NOTIFY appNameChanged)
Q_PROPERTY(QString appVersion READ appVersion WRITE setAppVersion NOTIFY appVersionChanged)
Q_PROPERTY(QString latestVersion READ latestVersion WRITE setLatestVersion NOTIFY latestVersionChanged)
Q_PROPERTY(QString buildDateTime READ buildDateTime WRITE setBuildDateTime NOTIFY buildDateTimeChanged)
Q_PROPERTY(QString buildRevision READ buildRevision WRITE setBuildRevision NOTIFY buildRevisionChanged)
Q_PROPERTY(QString latestVersion READ latestVersion WRITE setLatestVersion NOTIFY
latestVersionChanged)
Q_PROPERTY(QString buildDateTime READ buildDateTime WRITE setBuildDateTime NOTIFY
buildDateTimeChanged)
Q_PROPERTY(QString buildRevision READ buildRevision WRITE setBuildRevision NOTIFY
buildRevisionChanged)
Q_PROPERTY(QString copyRight READ copyRight WRITE setCopyRight NOTIFY copyRightChanged)
Q_PROPERTY(QString descript READ descript WRITE setDescript NOTIFY descriptChanged)
Q_PROPERTY(QString compilerVendor READ compilerVendor WRITE setCompilerVendor NOTIFY compilerVendorChanged)
Q_PROPERTY(QString compilerVendor READ compilerVendor WRITE setCompilerVendor NOTIFY
compilerVendorChanged)
Q_PROPERTY(bool splashShow READ splashShow WRITE setSplashShow NOTIFY splashShowChanged)
public:
@ -24,50 +28,23 @@ public:
void afterUiReady();
const QString & appName() const
{
return m_appName;
}
const QString &appName() const { return m_appName; }
const QString & appVersion() const
{
return m_appVersion;
}
const QString &appVersion() const { return m_appVersion; }
const QString & latestVersion() const
{
return m_latestVersion;
}
const QString &latestVersion() const { return m_latestVersion; }
const QString & buildDateTime() const
{
return m_buildDateTime;
}
const QString &buildDateTime() const { return m_buildDateTime; }
const QString & buildRevision() const
{
return m_buildRevision;
}
const QString &buildRevision() const { return m_buildRevision; }
const QString & copyRight() const
{
return m_copyRight;
}
const QString &copyRight() const { return m_copyRight; }
const QString & descript() const
{
return m_descript;
}
const QString &descript() const { return m_descript; }
const QString & compilerVendor() const
{
return m_compilerVendor;
}
const QString &compilerVendor() const { return m_compilerVendor; }
bool splashShow() const
{
return m_splashShow;
}
bool splashShow() const { return m_splashShow; }
public slots:
@ -91,7 +68,6 @@ public slots:
signals:
void appNameChanged(const QString &appName);
void appVersionChanged(const QString &appVersion);
@ -111,9 +87,7 @@ signals:
void splashShowChanged(bool splashShow);
protected:
private:
QString m_appName;
QString m_appVersion;
QString m_latestVersion;
@ -124,4 +98,3 @@ private:
QString m_compilerVendor;
bool m_splashShow;
};

View File

@ -1,7 +1,6 @@
#pragma once
/* Add C includes here */
/* Add C++ includes here */
#if defined __cplusplus
# include <QtGui>
@ -29,4 +28,3 @@
# include <QSettings>
#endif