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
qv4qmetaobjectwrapper_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 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
#ifndef QV4QMETAOBJECTWRAPPER_P_H
5
#define QV4QMETAOBJECTWRAPPER_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <private/qv4functionobject_p.h>
19
#include <private/qv4value_p.h>
20
21
#include <QtCore/qmetaobject.h>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQmlPropertyData
;
26
27
namespace
QV4
{
28
namespace
Heap {
29
30
struct
QMetaObjectWrapper
:
FunctionObject
{
31
const
QMetaObject
*
metaObject
;
32
QQmlPropertyData
*
constructors
;
33
int
constructorCount
;
34
35
void
init
(
const
QMetaObject
*
metaObject
);
36
void
destroy
();
37
void
ensureConstructorsCache
();
38
};
39
40
}
// namespace Heap
41
42
struct
Q_QML_EXPORT
QMetaObjectWrapper
:
public
FunctionObject
43
{
44
V4_OBJECT2
(
QMetaObjectWrapper
,
FunctionObject
)
45
V4_NEEDS_DESTROY
46
47
static
ReturnedValue
create
(
ExecutionEngine
*
engine
,
const
QMetaObject
*
metaObject
);
48
const
QMetaObject
*
metaObject
()
const
{
return
d
()->metaObject; }
49
50
protected
:
51
static
ReturnedValue
virtualCallAsConstructor(
52
const
FunctionObject
*,
const
Value
*argv,
int
argc,
const
Value
*);
53
static
bool
virtualIsEqualTo(
Managed
*
a
,
Managed
*
b
);
54
55
private
:
56
void
init
(
ExecutionEngine
*
engine
);
57
ReturnedValue
constructInternal(
const
Value
*argv,
int
argc)
const
;
58
};
59
60
}
// namespace QV4
61
62
QT_END_NAMESPACE
63
64
#endif
// QV4QMETAOBJECTWRAPPER_P_H
65
66
QQmlPropertyData
Definition
qqmlpropertydata_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QV4
Definition
qv4debugservice.h:28
QV4::ReturnedValue
quint64 ReturnedValue
Definition
qv4staticvalue_p.h:38
b
GLboolean GLboolean GLboolean b
Definition
qopengles2ext.h:337
a
GLboolean GLboolean GLboolean GLboolean a
[7]
Definition
qopengles2ext.h:337
init
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
Definition
qtextboundaryfinder.cpp:10
V4_NEEDS_DESTROY
#define V4_NEEDS_DESTROY
Definition
qv4managed_p.h:39
V4_OBJECT2
#define V4_OBJECT2(DataClass, superClass)
Definition
qv4vtable_p.h:262
metaObject
obj metaObject() -> className()
d
double d
Definition
src_corelib_text_qlocale.cpp:9
create
view create()
engine
QJSEngine engine
[0]
Definition
src_script_qjsvalue.cpp:14
QMetaObject
\inmodule QtCore
Definition
qobjectdefs.h:234
QV4::ExecutionEngine
Definition
qv4engine_p.h:136
QV4::FunctionObject
Definition
qv4functionobject_p.h:160
QV4::Heap::QMetaObjectWrapper
Definition
qv4qmetaobjectwrapper_p.h:30
QV4::Heap::QMetaObjectWrapper::ensureConstructorsCache
void ensureConstructorsCache()
Definition
qv4qmetaobjectwrapper.cpp:29
QV4::Heap::QMetaObjectWrapper::init
void init(const QMetaObject *metaObject)
Definition
qv4qmetaobjectwrapper.cpp:16
QV4::Heap::QMetaObjectWrapper::metaObject
const QMetaObject * metaObject
Definition
qv4qmetaobjectwrapper_p.h:31
QV4::Heap::QMetaObjectWrapper::destroy
void destroy()
Definition
qv4qmetaobjectwrapper.cpp:24
QV4::Heap::QMetaObjectWrapper::constructorCount
int constructorCount
Definition
qv4qmetaobjectwrapper_p.h:33
QV4::Heap::QMetaObjectWrapper::constructors
QQmlPropertyData * constructors
Definition
qv4qmetaobjectwrapper_p.h:32
QV4::Managed
Definition
qv4managed_p.h:73
QV4::QMetaObjectWrapper
Definition
qv4qmetaobjectwrapper_p.h:43
QV4::QMetaObjectWrapper::metaObject
const QMetaObject * metaObject() const
Definition
qv4qmetaobjectwrapper_p.h:48
QV4::Value
Definition
qv4value_p.h:38
qtdeclarative
src
qml
jsruntime
qv4qmetaobjectwrapper_p.h
Generated by
1.10.0