2023-05-22 16:17:51 +08:00
|
|
|
#ifndef APPINFO_H
|
2023-04-11 18:05:07 +08:00
|
|
|
#define APPINFO_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2023-05-25 17:00:48 +08:00
|
|
|
#include <QQmlApplicationEngine>
|
2023-04-11 18:05:07 +08:00
|
|
|
#include "stdafx.h"
|
2023-09-17 20:36:33 +08:00
|
|
|
#include "singleton.h"
|
2023-04-11 18:05:07 +08:00
|
|
|
|
|
|
|
class AppInfo : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY_AUTO(QString,version)
|
2023-09-17 20:36:33 +08:00
|
|
|
private:
|
2023-04-11 18:05:07 +08:00
|
|
|
explicit AppInfo(QObject *parent = nullptr);
|
2023-09-17 20:36:33 +08:00
|
|
|
public:
|
|
|
|
SINGLETONG(AppInfo)
|
2023-05-25 17:00:48 +08:00
|
|
|
void init(QQmlApplicationEngine *engine);
|
2023-04-11 18:05:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPINFO_H
|