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.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 reason:default
4
5#ifndef QQUICKATTACHEDOBJECT_H
6#define QQUICKATTACHEDOBJECT_H
7
8#include <QtCore/qobject.h>
9#include <QtQuickControls2/qtquickcontrols2global.h>
10
11QT_BEGIN_NAMESPACE
12
13class QQuickAttachedPropertyPropagatorPrivate;
14
15class Q_QUICKCONTROLS2_EXPORT QQuickAttachedPropertyPropagator : public QObject
16{
17 Q_OBJECT
18
19public:
20 explicit QQuickAttachedPropertyPropagator(QObject *parent = nullptr);
21 ~QQuickAttachedPropertyPropagator();
22
23 QList<QQuickAttachedPropertyPropagator *> attachedChildren() const;
24
25 QQuickAttachedPropertyPropagator *attachedParent() const;
26
27protected:
28 void initialize();
29
30 virtual void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent);
31
32private:
33#ifndef QT_NO_DEBUG_STREAM
34 friend Q_QUICKCONTROLS2_EXPORT QDebug operator<<(QDebug debug, const QQuickAttachedPropertyPropagator *propagator);
35#endif
36
37 Q_DECLARE_PRIVATE(QQuickAttachedPropertyPropagator)
38};
39
40QT_END_NAMESPACE
41
42#endif // QQUICKATTACHEDOBJECT_H
void transientParentWindowChanged(QWindow *newTransientParent)
void itemParentChanged(QQuickItem *item, QQuickItem *parent) override
QPointer< QQuickAttachedPropertyPropagator > attachedParent
QList< QQuickAttachedPropertyPropagator * > attachedChildren
void setAttachedParent(QQuickAttachedPropertyPropagator *parent)
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
QDebug operator<<(QDebug dbg, const NSObject *nsObject)
Definition qcore_mac.mm:201
static QList< QQuickAttachedPropertyPropagator * > findAttachedChildren(const QMetaObject *type, QObject *object)
static QQuickItem * findAttachedItem(QObject *parent)
static QQuickAttachedPropertyPropagator * findAttachedParent(const QMetaObject *ourAttachedType, QObject *objectWeAreAttachedTo)
const QMetaObject * firstCppMetaObject(QQuickAttachedPropertyPropagator *propagator)