1// Copyright (C) 2016 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 <private/qtquickglobal_p.h>
6
7QT_BEGIN_NAMESPACE
8
9Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick);
10Q_GHS_KEEP_REFERENCE(QQuick_initializeModule);
11
12class QtQuick2Plugin : public QQmlEngineExtensionPlugin
13{
14 Q_OBJECT
15 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
16public:
17 QtQuick2Plugin(QObject *parent = nullptr) : QQmlEngineExtensionPlugin(parent)
18 {
19 volatile auto registration = &qml_register_types_QtQuick;
20 volatile auto initialization = &QQuick_initializeModule;
21 Q_UNUSED(registration);
22 Q_UNUSED(initialization);
23 }
24};
25
26QT_END_NAMESPACE
27
28#include "qtquickplugin.moc"
29

source code of qtdeclarative/src/quick/qtquickplugin.cpp