Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant
4
6
8
9void QQmlObjectOrGadget::metacall(QMetaObject::Call type, int index, void **argv) const
10{
11 if (ptr.isNull()) {
12 _m->d.static_metacall(nullptr, type, index, argv);
13 }
14 else if (ptr.isT1()) {
15 QMetaObject::metacall(ptr.asT1(), type, index, argv);
16 }
17 else {
18 const QMetaObject *metaObject = _m;
19 QQmlMetaObject::resolveGadgetMethodOrPropertyIndex(type, &metaObject, &index);
20 metaObject->d.static_metacall(reinterpret_cast<QObject*>(ptr.asT2()), type, index, argv);
21 }
22}
23
24QT_END_NAMESPACE
Combined button and popup list for selecting options.