2023-04-11 18:05:07 +08:00
|
|
|
|
#ifndef APPINFO_H
|
|
|
|
|
#define APPINFO_H
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
2023-04-14 17:07:54 +08:00
|
|
|
|
#include "lang/Lang.h"
|
2023-04-11 18:05:07 +08:00
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
|
|
class AppInfo : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Q_PROPERTY_AUTO(QString,version)
|
2023-04-14 17:07:54 +08:00
|
|
|
|
Q_PROPERTY_AUTO(Lang*,lang)
|
2023-04-11 18:05:07 +08:00
|
|
|
|
public:
|
|
|
|
|
explicit AppInfo(QObject *parent = nullptr);
|
2023-04-14 17:07:54 +08:00
|
|
|
|
Q_INVOKABLE void changeLang(const QString& locale);
|
2023-04-22 00:29:47 +08:00
|
|
|
|
Q_SIGNAL void activeWindow();
|
2023-04-11 18:05:07 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // APPINFO_H
|