Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qabstractobjectregistryref_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
//
5
// W A R N I N G
6
// -------------
7
//
8
// This file is not part of the Qt API. It exists purely as an
9
// implementation detail. This header file may change from version to
10
// version without notice, or even be removed.
11
//
12
// We mean it.
13
//
14
15
#
ifndef
QABSTRACTOBJECTREGISTRYREF_P_H
16
#
define
QABSTRACTOBJECTREGISTRYREF_P_H
17
18
#
include
<
QtQmlDesignSupport
/
qabstractobjectregistryref
.
h
>
19
20
#
include
<
QtQml
/
qqml
.
h
>
21
22
#
include
<
QtCore
/
qpointer
.
h
>
23
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QObjectRegistrySingleton;
28
class
QQmlEngine;
29
30
class
Q_QMLDESIGNSUPPORT_EXPORT
QAbstractObjectRegistryRefPrivate
:
public
QObjectPrivate
31
{
32
Q_DECLARE_PUBLIC(QAbstractObjectRegistryRef)
33
34
public
:
35
explicit
QAbstractObjectRegistryRefPrivate(QQmlEngine *engine =
nullptr
);
36
37
virtual
void
handleObjectAdded(QObject *obj) = 0;
38
virtual
void
handleObjectRemoved(QObject *obj) = 0;
39
40
QString key()
const
;
41
42
protected
:
43
virtual
void
handleInitialObjects() = 0;
44
45
QObjectRegistrySingleton *registry()
const
;
46
47
private
:
48
static
void
dataAppend(QQmlListProperty<QObject> *l, QObject *o);
49
static
qsizetype dataCount(QQmlListProperty<QObject> *l);
50
static
QObject *dataAt(QQmlListProperty<QObject> *l, qsizetype i);
51
static
void
dataClear(QQmlListProperty<QObject> *l);
52
static
void
dataReplace(QQmlListProperty<QObject> *l, qsizetype i, QObject *o);
53
static
void
dataRemoveLast(QQmlListProperty<QObject> *l);
54
55
QString m_key;
56
QList<QObject *> m_data;
57
QPointer<QObjectRegistrySingleton> m_registry;
58
};
59
60
QT_END_NAMESPACE
61
62
#
endif
// QABSTRACTOBJECTREGISTRYREF_P_H
QAbstractObjectRegistryRefPrivate
Definition
qabstractobjectregistryref_p.h:31
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
qmldesignsupport
qabstractobjectregistryref_p.h
Generated on
for Qt by
1.18.0