Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickshapesplugin.cpp
Go to the documentation of this file.
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
// Qt-Security score:significant reason:default
4
5
#
include
<
QtQml
/
qqmlextensionplugin
.
h
>
6
#
include
<
QtQml
/
qqml
.
h
>
7
#
include
<
QtQuickShapes
/
private
/
qquickshape_p
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
Q_GHS_KEEP_REFERENCE
(
qml_register_types_QtQuick_Shapes
);
12
Q_GHS_KEEP_REFERENCE
(
QQuickShapes_initializeModule
);
13
14
class
QmlShapesPlugin
:
public
QQmlEngineExtensionPlugin
15
{
16
Q_OBJECT
17
Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
18
19
public
:
20
QmlShapesPlugin
(
QObject
*
parent
=
nullptr
) :
QQmlEngineExtensionPlugin
(
parent
)
21
{
22
volatile
auto
registration
= &
qml_register_types_QtQuick_Shapes
;
23
volatile
auto
initialize
= &
QQuickShapes_initializeModule
;
24
Q_UNUSED
(
registration
);
25
Q_UNUSED
(
initialize
);
26
}
27
};
28
29
QT_END_NAMESPACE
30
31
#
include
"qquickshapesplugin.moc"
QmlShapesPlugin
Definition
qquickshapesplugin.cpp:15
Q_GHS_KEEP_REFERENCE
Q_GHS_KEEP_REFERENCE(QQuickShapes_initializeModule)
Q_GHS_KEEP_REFERENCE
QT_BEGIN_NAMESPACE Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick)
qtdeclarative
src
quickshapes
qquickshapesplugin.cpp
Generated on
for Qt by
1.16.1