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