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
removed_api.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 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#define QT_QML_BUILD_REMOVED_API
5
6#include "qtqmlglobal.h"
7
9
10#if QT_QML_REMOVED_SINCE(6, 5)
11
12#include <QtQml/qjsengine.h>
13
14QJSValue QJSEngine::create(int typeId, const void *ptr)
15{
16 QMetaType type(typeId);
17 return create(type, ptr);
18}
19
20bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr)
21{
22 return convertV2(value, QMetaType(type), ptr);
23}
24
25#endif
26
27#if QT_QML_REMOVED_SINCE(6, 6)
28#include <QtQml/qqmlprivate.h>
29#include <QtQml/private/qv4executablecompilationunit_p.h>
30#include <QtQml/private/qv4lookup_p.h>
31
33{
34 using namespace QQmlPrivate;
36 auto mt = QMetaType(l->qmlEnumValueLookup.metaType);
37 QVariant buffer(mt);
38 getEnumLookup(index, buffer.data());
39 *target = buffer.toInt();
40 return true;
41}
42#endif
The QJSValue class acts as a container for Qt/JavaScript data types.
Definition qjsvalue.h:31
\inmodule QtCore
Definition qmetatype.h:341
\inmodule QtCore
Definition qvariant.h:65
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static ControlElement< T > * ptr(QWidget *widget)
GLuint index
[2]
GLenum GLuint buffer
GLenum type
GLenum target
unsigned int uint
Definition qtypes.h:34
view create()
bool getEnumLookup(uint index, void *target) const
Definition qqml.cpp:2264
QV4::ExecutableCompilationUnit * compilationUnit
struct QV4::Lookup::@584::@607 qmlEnumValueLookup