mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
2c16f6f71a
commit
1b4fddec61
@ -45,5 +45,6 @@ Item {
|
||||
}
|
||||
FluApp.initialRoute = "/"
|
||||
FluApp.run()
|
||||
__fluentui()
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,10 @@ void FluApp::init(QObject *application){
|
||||
FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow);
|
||||
QQmlEngine *engine = qmlEngine(_application);
|
||||
FramelessHelper::Quick::registerTypes(engine);
|
||||
QJSEngine * jsEngine = qjsEngine(_application);
|
||||
std::string jsFunction = R"( (function () { console.log("FluentUI");}) )";
|
||||
QJSValue function = jsEngine->evaluate(QString::fromStdString(jsFunction));
|
||||
jsEngine->globalObject().setProperty("__fluentui",function);
|
||||
}
|
||||
|
||||
void FluApp::run(){
|
||||
|
Loading…
Reference in New Issue
Block a user