Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlmoduleregistration.cpp
Go to the documentation of this file.
1// Copyright (C) 2019 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/private/qqmlmetatype_p.h>
5#include <QtQml/qqmlmoduleregistration.h>
6#include <QtCore/qversionnumber.h>
7
9
14
15QQmlModuleRegistration::QQmlModuleRegistration(const char *uri, void (*registerFunction)()) :
16 d(new QQmlModuleRegistrationPrivate { QString::fromUtf8(uri) })
17{
19}
20
21#if QT_DEPRECATED_SINCE(6, 0)
23 const char *uri, int majorVersion, void (*registerFunction)()) :
24 QQmlModuleRegistration(uri, registerFunction)
25{
26 Q_UNUSED(majorVersion);
27}
28#endif
29
35
static void qmlRemoveModuleRegistration(const QString &uri)
static void qmlInsertModuleRegistration(const QString &uri, void(*registerFunction)())
QQmlModuleRegistration(const char *uri, void(*registerFunction)())
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_UNUSED(x)