fix(screen): register Output as a QML namespace
parent
164de9c9f6
commit
43a89b72cb
@ -1,21 +0,0 @@
|
|||||||
#include "output.h"
|
|
||||||
#include "screen.h"
|
|
||||||
|
|
||||||
#include <QQmlExtensionPlugin>
|
|
||||||
#include <qqml.h>
|
|
||||||
|
|
||||||
class QmlPlugins : public QQmlExtensionPlugin
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
|
||||||
|
|
||||||
public:
|
|
||||||
void registerTypes(const char *uri) override
|
|
||||||
{
|
|
||||||
qmlRegisterType<KScreenScreen>(uri, 1, 0, "Screen");
|
|
||||||
qmlRegisterUncreatableMetaObject(Output::staticMetaObject, uri, 1, 0, "Output",
|
|
||||||
QStringLiteral("Output is only a namespace for enums"));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
#include "plugin.moc"
|
|
||||||
Loading…
Reference in New Issue