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.
20 lines
507 B
C++
20 lines
507 B
C++
#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, "OutputModel");
|
|
qmlRegisterType<Screen>(uri, 1, 0, "Screen");
|
|
qmlRegisterType<KScreen::Output>(uri, 1, 0, "Output");
|
|
}
|
|
};
|
|
|
|
#include "plugin.moc" |