add hotkey

This commit is contained in:
朱子楚\zhuzi
2024-05-16 00:35:04 +08:00
parent 876b230141
commit 354f7f2e3e
26 changed files with 2083 additions and 114 deletions

View File

@ -16,9 +16,10 @@ FluApp::FluApp(QObject *parent) : QObject{parent} {
FluApp::~FluApp() = default;
void FluApp::init(QObject *target, QLocale locale) {
void FluApp::init(QObject *launcher, QLocale locale) {
this->launcher(launcher);
_locale = std::move(locale);
_engine = qmlEngine(target);
_engine = qmlEngine(launcher);
_translator = new QTranslator(this);
QGuiApplication::installTranslator(_translator);
const QStringList uiLanguages = _locale.uiLanguages();