You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcutefish/screen/plugin.cpp

22 lines
565 B
C++

#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"