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
8
QT_USE_NAMESPACE
9
10
#if QT_QML_REMOVED_SINCE(6, 5)
11
12
#include <QtQml/qjsengine.h>
13
14
QJSValue
QJSEngine::create(
int
typeId,
const
void
*
ptr
)
15
{
16
QMetaType
type
(typeId);
17
return
create
(
type
,
ptr
);
18
}
19
20
bool
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
32
bool
QQmlPrivate::AOTCompiledContext::getEnumLookup
(
uint
index
,
int
*
target
)
const
33
{
34
using namespace
QQmlPrivate
;
35
QV4::Lookup
*l =
compilationUnit
->
runtimeLookups
+
index
;
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
QJSValue
The QJSValue class acts as a container for Qt/JavaScript data types.
Definition
qjsvalue.h:31
QMetaType
\inmodule QtCore
Definition
qmetatype.h:341
QVariant
\inmodule QtCore
Definition
qvariant.h:65
QQmlPrivate
Definition
qv4compileddata_p.h:63
QT_USE_NAMESPACE
Definition
avfmediaassetwriter.mm:18
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
ptr
static ControlElement< T > * ptr(QWidget *widget)
Definition
qmdisubwindow.cpp:223
index
GLuint index
[2]
Definition
qopengles2ext.h:331
buffer
GLenum GLuint buffer
Definition
qopengles2ext.h:659
type
GLenum type
Definition
qopengles2ext.h:150
target
GLenum target
Definition
qopengles2ext.h:751
qtqmlglobal.h
uint
unsigned int uint
Definition
qtypes.h:34
create
view create()
QQmlPrivate::AOTCompiledContext::getEnumLookup
bool getEnumLookup(uint index, void *target) const
Definition
qqml.cpp:2264
QQmlPrivate::AOTCompiledContext::compilationUnit
QV4::ExecutableCompilationUnit * compilationUnit
Definition
qqmlprivate.h:627
QV4::CompilationUnitRuntimeData::runtimeLookups
QV4::Lookup * runtimeLookups
Definition
qv4executablecompilationunit_p.h:51
QV4::Lookup
Definition
qv4lookup_p.h:38
QV4::Lookup::qmlEnumValueLookup
struct QV4::Lookup::@583::@607 qmlEnumValueLookup
qtdeclarative
src
qml
compat
removed_api.cpp
Generated by
1.10.0