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
4
#
include
<
QtQml
/
qqmlextensionplugin
.
h
>
5
#
include
<
QtQml
/
qqml
.
h
>
6
#
include
<
QtQuickShapes
/
private
/
qquickshape_p
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
Q_GHS_KEEP_REFERENCE
(
qml_register_types_QtQuick_Shapes
);
11
Q_GHS_KEEP_REFERENCE
(
QQuickShapes_initializeModule
);
12
13
class
QmlShapesPlugin
:
public
QQmlEngineExtensionPlugin
14
{
15
Q_OBJECT
16
Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
17
18
public
:
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
28
QT_END_NAMESPACE
29
30
#
include
"qquickshapesplugin.moc"
QmlShapesPlugin
Definition
qquickshapesplugin.cpp:14
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.14.0