#include "screenplaysysinfo_plugin.h" #include "sysinfo.h" #include #include QObject* ScreenPlaySysInfoSingleton(QQmlEngine* engine, QJSEngine* scriptEngine) { Q_UNUSED(engine) Q_UNUSED(scriptEngine) return new SysInfo(); } void ScreenPlaySysInfoPlugin::registerTypes(const char* uri) { // @uri ScreenPlay.Sysinfo qmlRegisterSingletonType(uri, 1, 0, "SysInfo", ScreenPlaySysInfoSingleton); }