diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2023-01-10 12:56:58 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-01-18 14:29:47 +0000 |
| commit | 281497bfbc6af36c2051d255eed350c03da74439 (patch) | |
| tree | 3cd8ada9860f433f0b4f1215bda9c166d97cccee /src/qml/compat/removed_api.cpp | |
| parent | 19b35008e2b2bebef10a9d52c8389920df1e1953 (diff) | |
Fix minor API problems
Add explicit where appropriate, and use more elegant constructs in
inline functions. Introduce removed_api.cpp for
QJSEngine::create(int, const void *).
Pick-to: 6.5
Change-Id: Ie54b0494fe3c5567f8a5ca361c3a583de3d97dd5
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/compat/removed_api.cpp')
| -rw-r--r-- | src/qml/compat/removed_api.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/qml/compat/removed_api.cpp b/src/qml/compat/removed_api.cpp new file mode 100644 index 0000000000..acdd0bab13 --- /dev/null +++ b/src/qml/compat/removed_api.cpp @@ -0,0 +1,21 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#define QT_QML_BUILD_REMOVED_API + +#include "qtqmlglobal.h" + +QT_USE_NAMESPACE + +#if QT_QML_REMOVED_SINCE(6, 5) + +#include <QtQml/qjsengine.h> + +QJSValue QJSEngine::create(int typeId, const void *ptr) +{ + QMetaType type(typeId); + return create(type, ptr); +} + +#endif + |
