1// Copyright (C) 2017 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 <QtQuickShapes/private/qquickshape_p.h>
7
8QT_BEGIN_NAMESPACE
9
10Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick_Shapes);
11Q_GHS_KEEP_REFERENCE(QQuickShapes_initializeModule);
12
13class QmlShapesPlugin : public QQmlEngineExtensionPlugin
14{
15 Q_OBJECT
16 Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
17
18public:
19 QmlShapesPlugin(QObject *parent = nullptr) : QQmlEngineExtensionPlugin(parent)
20 {
21 volatile auto registration = &qml_register_types_QtQuick_Shapes;
22 volatile auto initialize = &QQuickShapes_initializeModule;
23 Q_UNUSED(registration);
24 Q_UNUSED(initialize);
25 }
26};
27
28QT_END_NAMESPACE
29
30#include "qquickshapesplugin.moc"
31

source code of qtdeclarative/src/quickshapes/qquickshapesplugin.cpp