UTPass/plugins/Utils/plugin.cpp

11 lines
251 B
C++
Raw Permalink Normal View History

2019-09-20 19:29:39 +00:00
#include <QtQml>
#include "plugin.h"
#include "utils.h"
void UtilsPlugin::registerTypes(const char *uri)
{
//@uri Utils
qmlRegisterSingletonType<Utils>(uri, 1, 0, "Utils", [](QQmlEngine *, QJSEngine *) -> QObject * { return new Utils; });
}