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
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
5
7
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;
19 metaObject->d.static_metacall(reinterpret_cast<QObject*>(ptr.asT2()), type, index, argv);
20 }
21}
22
T * asT1() const
bool isNull() const
bool isT1() const
T2 * asT2() const
\inmodule QtCore
Definition qobject.h:103
const QMetaObject * metaObject() const
static void resolveGadgetMethodOrPropertyIndex(QMetaObject::Call type, const QMetaObject **metaObject, int *index)
const QMetaObject * _m
void metacall(QMetaObject::Call type, int index, void **argv) const
Combined button and popup list for selecting options.
GLuint index
[2]
GLenum type
\inmodule QtCore
static int metacall(QObject *, Call, int, void **)
struct QMetaObject::Data d