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_p.h
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
5
#
ifndef
QQMLOBJECTORGADGET_P_H
6
#
define
QQMLOBJECTORGADGET_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
private
/
qqmlmetaobject_p
.
h
>
20
#
include
<
private
/
qbipointer_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QQmlObjectOrGadget:
public
QQmlMetaObject
25
{
26
public
:
27
QQmlObjectOrGadget(QObject *obj)
28
: QQmlMetaObject(obj),
29
ptr(obj)
30
{}
31
QQmlObjectOrGadget(
const
QMetaObject *metaObject,
void
*gadget)
32
: QQmlMetaObject(metaObject)
33
, ptr(gadget)
34
{}
35
QQmlObjectOrGadget(
const
QMetaObject* metaObject)
36
: QQmlMetaObject(metaObject)
37
{}
38
39
void
metacall(QMetaObject::Call type,
int
index,
void
**argv)
const
;
40
41
bool
isNull()
const
{
return
ptr.isNull(); }
42
QObject *qObject()
const
{
return
ptr.isT1() ? ptr.asT1() :
nullptr
; }
43
44
private
:
45
QBiPointer<QObject,
void
> ptr;
46
};
47
48
QT_END_NAMESPACE
49
50
#
endif
// QQMLOBJECTORGADGET_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtdeclarative
src
qml
qml
qqmlobjectorgadget_p.h
Generated on
for Qt by
1.16.1