2024-04-11 14:51:43 +08:00
|
|
|
#pragma once
|
2023-04-11 18:05:07 +08:00
|
|
|
|
|
|
|
#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
|
|
|
|
2024-04-11 14:51:43 +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);
|
2024-04-11 14:51:43 +08:00
|
|
|
|
2023-09-17 20:36:33 +08:00
|
|
|
public:
|
2024-04-11 14:51:43 +08:00
|
|
|
SINGLETON(AppInfo)
|
2023-04-11 18:05:07 +08:00
|
|
|
|
2024-04-11 19:18:37 +08:00
|
|
|
[[maybe_unused]] Q_INVOKABLE void testCrash();
|
2024-04-11 14:51:43 +08:00
|
|
|
};
|