2018-09-19 13:19:51 +02:00
|
|
|
#include "screenplaysysinfo_plugin.h"
|
|
|
|
#include "sysinfo.h"
|
2018-10-26 12:05:23 +02:00
|
|
|
#include <qmetatype.h>
|
2018-09-19 13:19:51 +02:00
|
|
|
#include <qqml.h>
|
|
|
|
|
2018-10-26 12:05:23 +02:00
|
|
|
QObject* ScreenPlaySysInfoSingleton(QQmlEngine* engine, QJSEngine* scriptEngine)
|
2018-09-19 13:22:53 +02:00
|
|
|
{
|
|
|
|
Q_UNUSED(engine)
|
|
|
|
Q_UNUSED(scriptEngine)
|
|
|
|
|
|
|
|
return new SysInfo();
|
|
|
|
}
|
|
|
|
|
2018-10-26 12:05:23 +02:00
|
|
|
void ScreenPlaySysInfoPlugin::registerTypes(const char* uri)
|
2018-09-19 13:19:51 +02:00
|
|
|
{
|
2019-06-10 16:27:17 +02:00
|
|
|
// @uri ScreenPlay.Sysinfo
|
2018-10-26 12:05:23 +02:00
|
|
|
qmlRegisterSingletonType<SysInfo>(uri, 1, 0, "SysInfo", ScreenPlaySysInfoSingleton);
|
|
|
|
}
|