This commit is contained in:
zhuzihcu
2023-05-25 17:00:48 +08:00
parent a123dfbccf
commit 0dbbba56da
10 changed files with 136 additions and 116 deletions

View File

@ -2,6 +2,8 @@
#define APPINFO_H
#include <QObject>
#include <QQmlApplicationEngine>
#include "tool/IPC.h"
#include "lang/Lang.h"
#include "stdafx.h"
@ -12,6 +14,8 @@ class AppInfo : public QObject
Q_PROPERTY_AUTO(Lang*,lang)
public:
explicit AppInfo(QObject *parent = nullptr);
void init(QQmlApplicationEngine *engine);
bool isOwnerProcess(IPC *ipc);
Q_INVOKABLE void changeLang(const QString& locale);
Q_SIGNAL void activeWindow();
};