2023-02-24 18:44:29 +08:00
|
|
|
|
#include "FluentUI.h"
|
|
|
|
|
|
2023-02-26 23:47:07 +08:00
|
|
|
|
#include "Fluent.h"
|
2023-02-24 18:44:29 +08:00
|
|
|
|
|
2023-02-26 23:47:07 +08:00
|
|
|
|
void FluentUI::create(QQmlEngine *engine)
|
2023-02-24 18:44:29 +08:00
|
|
|
|
{
|
2023-02-26 23:47:07 +08:00
|
|
|
|
engine->addImportPath("/");
|
2023-02-28 18:29:00 +08:00
|
|
|
|
Fluent::getInstance()->initializeEngine(engine,URI_STR);
|
|
|
|
|
Fluent::getInstance()->registerTypes(URI_STR);
|
2023-02-24 18:44:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-02-26 23:47:07 +08:00
|
|
|
|
QString FluentUI::version()
|
2023-02-24 18:44:29 +08:00
|
|
|
|
{
|
2023-02-26 23:47:07 +08:00
|
|
|
|
return Fluent::getInstance()->version();
|
2023-02-24 18:44:29 +08:00
|
|
|
|
}
|