| 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 | #ifndef QT_NO_DEBUG_STREAM |
| 33 | friend Q_QUICKCONTROLS2_EXPORT QDebug operator<<(QDebug debug, const QQuickAttachedPropertyPropagator *propagator); |
| 34 | #endif |
| 35 | |
| 36 | Q_DECLARE_PRIVATE(QQuickAttachedPropertyPropagator) |
| 37 | }; |
| 38 | |
| 39 | QT_END_NAMESPACE |
| 40 | |
| 41 | #endif // QQUICKATTACHEDOBJECT_H |
| 42 |
