UTPassMirror/plugins/Pass/plugin.cpp

11 lines
271 B
C++
Raw Normal View History

2019-03-13 18:38:12 +00:00
#include <QtQml>
#include <QtQml/QQmlContext>
#include "plugin.h"
#include "pass.h"
void PassPlugin::registerTypes(const char *uri) {
//@uri Pass
qmlRegisterSingletonType<Pass>(uri, 1, 0, "Pass", [](QQmlEngine*, QJSEngine*) -> QObject* { return new Pass; });
}