1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtQml/qqmlextensionplugin.h>
5#include <QtQml/qqml.h>
6#include <QtQml/qqmlengine.h>
7
8QT_BEGIN_NAMESPACE
9
10class QtGraphicalEffectsPlugin : public QQmlExtensionPlugin
11{
12 Q_OBJECT
13 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
14
15public:
16 QtGraphicalEffectsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
17 void registerTypes(const char *uri) override
18 {
19 Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt5Compat.GraphicalEffects"));
20
21 qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR);
22 }
23};
24
25QT_END_NAMESPACE
26
27#include "plugin.moc"
28

source code of qt5compat/src/imports/graphicaleffects5/plugin.cpp