Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlobjectorgadget.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 "
qqmlobjectorgadget_p.h
"
5
6
QT_BEGIN_NAMESPACE
7
8
void
QQmlObjectOrGadget::metacall
(
QMetaObject::Call
type
,
int
index
,
void
**argv)
const
9
{
10
if
(ptr.
isNull
()) {
11
_m
->
d
.
static_metacall
(
nullptr
,
type
,
index
, argv);
12
}
13
else
if
(ptr.
isT1
()) {
14
QMetaObject::metacall
(ptr.
asT1
(),
type
,
index
, argv);
15
}
16
else
{
17
const
QMetaObject
*
metaObject
=
_m
;
18
QQmlMetaObject::resolveGadgetMethodOrPropertyIndex
(
type
, &
metaObject
, &
index
);
19
metaObject
->
d
.
static_metacall
(
reinterpret_cast<
QObject
*
>
(ptr.
asT2
()),
type
,
index
, argv);
20
}
21
}
22
23
QT_END_NAMESPACE
QBiPointer::asT1
T * asT1() const
Definition
qbipointer_p.h:188
QBiPointer::isNull
bool isNull() const
Definition
qbipointer_p.h:127
QBiPointer::isT1
bool isT1() const
Definition
qbipointer_p.h:133
QBiPointer::asT2
T2 * asT2() const
Definition
qbipointer_p.h:195
QObject
\inmodule QtCore
Definition
qobject.h:90
QQmlMetaObject::metaObject
const QMetaObject * metaObject() const
Definition
qqmlmetaobject_p.h:134
QQmlMetaObject::resolveGadgetMethodOrPropertyIndex
static void resolveGadgetMethodOrPropertyIndex(QMetaObject::Call type, const QMetaObject **metaObject, int *index)
Definition
qqmlmetaobject.cpp:11
QQmlMetaObject::_m
const QMetaObject * _m
Definition
qqmlmetaobject_p.h:83
QQmlObjectOrGadget::metacall
void metacall(QMetaObject::Call type, int index, void **argv) const
Definition
qqmlobjectorgadget.cpp:8
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
index
GLuint index
[2]
Definition
qopengles2ext.h:331
type
GLenum type
Definition
qopengles2ext.h:150
qqmlobjectorgadget_p.h
QMetaObject::Data::static_metacall
StaticMetacallFunction static_metacall
Definition
qobjectdefs.h:519
QMetaObject
\inmodule QtCore
Definition
qobjectdefs.h:226
QMetaObject::metacall
static int metacall(QObject *, Call, int, void **)
Definition
qmetaobject.cpp:329
QMetaObject::Call
Call
Definition
qobjectdefs.h:467
QMetaObject::d
struct QMetaObject::Data d
qtdeclarative
src
qml
qml
qqmlobjectorgadget.cpp
Generated by
1.9.7