mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-08 04:37:41 +08:00
add hotkey
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user