FluentUI/src/qml_plugin.cpp

17 lines
476 B
C++
Raw Normal View History

2023-02-24 18:44:29 +08:00
#include "qml_plugin.h"
void FluentUIQmlPlugin::registerTypes(const char *uri)
{
int major = 1;
int minor = 0;
qmlRegisterType<FluentUI>(uri, major, minor, "FluentUI");
qmlRegisterType(QUrl("qrc:/com.zzc/controls/StandardButton.qml"),uri,major,minor,"StandardButton");
qmlRegisterType(QUrl("qrc:/com.zzc/controls/FilledButton.qml"),uri,major,minor,"FilledButton");
}
void FluentUIQmlPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
{
}