summaryrefslogtreecommitdiff
path: root/src/effects/private/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/private/plugin.cpp')
-rw-r--r--src/effects/private/plugin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/effects/private/plugin.cpp b/src/effects/private/plugin.cpp
index 6cd9047..9fd9ca2 100644
--- a/src/effects/private/plugin.cpp
+++ b/src/effects/private/plugin.cpp
@@ -36,9 +36,15 @@
#include <QtQml/qqmlengine.h>
#include "qgfxsourceproxy_p.h"
+#include "qgfxshaderbuilder_p.h"
QT_BEGIN_NAMESPACE
+static QObject *qgfxshaderbuilder_provider(QQmlEngine *, QJSEngine *)
+{
+ return new QGfxShaderBuilder();
+}
+
class QtGraphicalEffectsPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
@@ -49,6 +55,7 @@ public:
{
Q_ASSERT(QByteArray(uri) == QByteArrayLiteral("QtGraphicalEffects.private"));
qmlRegisterType<QGfxSourceProxy>(uri, 1, 0, "SourceProxy");
+ qmlRegisterSingletonType<QGfxShaderBuilder>(uri, 1, 0, "ShaderBuilder", qgfxshaderbuilder_provider);
}
};