mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-09 12:32:40 +01:00
20 lines
448 B
C++
20 lines
448 B
C++
#include "screenplaysysinfo_plugin.h"
|
|
#include "sysinfo.h"
|
|
#include <qmetatype.h>
|
|
#include <qqml.h>
|
|
|
|
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<SysInfo>(uri, 1, 0, "SysInfo", ScreenPlaySysInfoSingleton);
|
|
|
|
}
|