This repository has been archived on 2024-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
UTPass/plugins/Utils/plugin.cpp

11 lines
251 B
C++

#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; });
}