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
4#ifndef QQUICKATTACHEDOBJECT_H
5#define QQUICKATTACHEDOBJECT_H
6
7#include <QtCore/qobject.h>
8#include <QtQuickControls2/qtquickcontrols2global.h>
9
10QT_BEGIN_NAMESPACE
11
12class QQuickAttachedPropertyPropagatorPrivate;
13
14class Q_QUICKCONTROLS2_EXPORT QQuickAttachedPropertyPropagator : public QObject
15{
16 Q_OBJECT
17
18public:
19 explicit QQuickAttachedPropertyPropagator(QObject *parent = nullptr);
20 ~QQuickAttachedPropertyPropagator();
21
22 QList<QQuickAttachedPropertyPropagator *> attachedChildren() const;
23
24 QQuickAttachedPropertyPropagator *attachedParent() const;
25
26protected:
27 void initialize();
28
29 virtual void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent);
30
31private:
32 Q_DECLARE_PRIVATE(QQuickAttachedPropertyPropagator)
33};
34
35QT_END_NAMESPACE
36
37#endif // QQUICKATTACHEDOBJECT_H
38

source code of qtdeclarative/src/quickcontrols/qquickattachedpropertypropagator.h