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

20 lines
502 B
C++

4 years ago
#include <QQmlExtensionPlugin>
#include <QQmlEngine>
#include "outputmodel.h"
#include "screen.h"
class QmlPlugins : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char * uri) override {
// qmlRegisterType<OutputModel>(uri, 1, 0, "Screen");
qmlRegisterType<Screen>(uri, 1, 0, "Screen");
qmlRegisterType<KScreen::Output>(uri, 1, 0, "Output");
}
};
#include "plugin.moc"