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
qquickattachedpropertypropagator_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QQUICKATTACHEDPROPERTYPROPAGATOR_P_H
5
#
define
QQUICKATTACHEDPROPERTYPROPAGATOR_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
<
QtCore
/
qobject
.
h
>
19
#
include
<
QtCore
/
qloggingcategory
.
h
>
20
#
include
<
QtQuick
/
qtquickexports
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY
(
lcAttachedPropertyPropagator
,
Q_QUICK_EXPORT
)
25
26
// This type is a copy of the type of the same name from Controls.
27
// It exists here because QQuickContextMenu needs to derive from it,
28
// but that type is in Templates, which can't depend on Controls.
29
30
// This allows us to use the same name as the type in Controls.
31
namespace
QtPrivate
{
32
33
class
QQuickAttachedPropertyPropagatorPrivate;
34
35
class
Q_QUICK_EXPORT
QQuickAttachedPropertyPropagator
:
public
QObject
36
{
37
Q_OBJECT
38
39
public
:
40
explicit
QQuickAttachedPropertyPropagator
(
QObject
*
parent
=
nullptr
);
41
~
QQuickAttachedPropertyPropagator
();
42
43
QList
<
QQuickAttachedPropertyPropagator
*>
attachedChildren
()
const
;
44
45
QQuickAttachedPropertyPropagator
*
attachedParent
()
const
;
46
47
static
QQuickAttachedPropertyPropagator
*
attachedObject
(
const
QMetaObject
*
attachedType
,
48
QObject
*
attachee
,
bool
create
=
false
);
49
static
QQuickAttachedPropertyPropagator
*
fallbackAttachedObject
(
50
const
QMetaObject
*
attachedType
,
QObject
*
attachee
);
51
52
protected
:
53
QQuickAttachedPropertyPropagator
(
QQuickAttachedPropertyPropagatorPrivate
&
dd
,
QObject
*
parent
);
54
55
void
initialize
();
56
57
virtual
void
attachedParentChange
(
QQuickAttachedPropertyPropagator
*
newParent
,
58
QQuickAttachedPropertyPropagator
*
oldParent
);
59
60
private
:
61
#
ifndef
QT_NO_DEBUG_STREAM
62
friend
Q_QUICK_EXPORT
QDebug
operator
<<(
QDebug
debug
,
63
const
QQuickAttachedPropertyPropagator
*
propagator
);
64
#
endif
65
66
Q_DECLARE_PRIVATE
(
QQuickAttachedPropertyPropagator
)
67
};
68
69
}
// namespace QtPrivate
70
71
QT_END_NAMESPACE
72
73
#
endif
// QQUICKATTACHEDPROPERTYPROPAGATOR_P_H
QtPrivate::QQuickAttachedPropertyPropagator
Definition
qquickattachedpropertypropagator_p.h:36
QtPrivate
Definition
qalloc.h:28
QtPrivate::operator<<
QDebug operator<<(QDebug debug, const QQuickAttachedPropertyPropagator *propagator)
Definition
qquickattachedpropertypropagator.cpp:423
QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY(lcAotCompiler, Q_QMLCOMPILER_EXPORT)
qtdeclarative
src
quick
util
qquickattachedpropertypropagator_p.h
Generated on
for Qt by
1.16.1