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
4
#
ifndef
QQMLOBJECTORGADGET_P_H
5
#
define
QQMLOBJECTORGADGET_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
/
qqmlmetaobject_p
.
h
>
19
#
include
<
private
/
qbipointer_p
.
h
>
20
21
QT_BEGIN_NAMESPACE
22
23
class
QQmlObjectOrGadget:
public
QQmlMetaObject
24
{
25
public
:
26
QQmlObjectOrGadget(QObject *obj)
27
: QQmlMetaObject(obj),
28
ptr(obj)
29
{}
30
QQmlObjectOrGadget(
const
QMetaObject *metaObject,
void
*gadget)
31
: QQmlMetaObject(metaObject)
32
, ptr(gadget)
33
{}
34
QQmlObjectOrGadget(
const
QMetaObject* metaObject)
35
: QQmlMetaObject(metaObject)
36
{}
37
38
void
metacall(QMetaObject::Call type,
int
index,
void
**argv)
const
;
39
40
bool
isNull()
const
{
return
ptr.isNull(); }
41
QObject *qObject()
const
{
return
ptr.isT1() ? ptr.asT1() :
nullptr
; }
42
43
private
:
44
QBiPointer<QObject,
void
> ptr;
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QQMLOBJECTORGADGET_P_H
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
qml
qml
qqmlobjectorgadget_p.h
Generated on
for Qt by
1.14.0