aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/qquickattachedpropertypropagator.h
blob: de3e20bf3f6e65cf09a318d812a62b0c99925180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QQUICKATTACHEDOBJECT_H
#define QQUICKATTACHEDOBJECT_H

#include <QtCore/qobject.h>
#include <QtQuickControls2/qtquickcontrols2global.h>

QT_BEGIN_NAMESPACE

class QQuickAttachedPropertyPropagatorPrivate;

class Q_QUICKCONTROLS2_EXPORT QQuickAttachedPropertyPropagator : public QObject
{
    Q_OBJECT

public:
    explicit QQuickAttachedPropertyPropagator(QObject *parent = nullptr);
    ~QQuickAttachedPropertyPropagator();

    QList<QQuickAttachedPropertyPropagator *> attachedChildren() const;

    QQuickAttachedPropertyPropagator *attachedParent() const;

protected:
    void initialize();

    virtual void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent);

private:
#ifndef QT_NO_DEBUG_STREAM
    friend Q_QUICKCONTROLS2_EXPORT QDebug operator<<(QDebug debug, const QQuickAttachedPropertyPropagator *propagator);
#endif

    Q_DECLARE_PRIVATE(QQuickAttachedPropertyPropagator)
};

QT_END_NAMESPACE

#endif // QQUICKATTACHEDOBJECT_H