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#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
39QT_END_NAMESPACE
40
41#endif // QQUICKATTACHEDOBJECT_H
42

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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