Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmldebugstatesdelegate_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant
4
5#ifndef QQMLDEBUGSTATESDELEGATE_P_H
6#define QQMLDEBUGSTATESDELEGATE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQml/qtqmlglobal.h>
20#include <QtCore/QList>
21#include <QtCore/QPointer>
22#include <QtCore/private/qglobal_p.h>
23
24QT_BEGIN_NAMESPACE
25
26#if !QT_CONFIG(qml_debug)
27
28class QQmlDebugStatesDelegate {};
29
30#else
31
32class QQmlContext;
33class QQmlProperty;
34class QObject;
35class QString;
36class QVariant;
37
38class QQmlDebugStatesDelegate
39{
40protected:
41 QQmlDebugStatesDelegate() {}
42
43public:
44 virtual ~QQmlDebugStatesDelegate() {}
45
46 virtual void buildStatesList(bool cleanList,
47 const QList<QPointer<QObject> > &instances) = 0;
48 virtual void updateBinding(QQmlContext *context,
49 const QQmlProperty &property,
50 const QVariant &expression, bool isLiteralValue,
51 const QString &fileName, int line, int column,
52 bool *inBaseState) = 0;
53 virtual bool setBindingForInvalidProperty(QObject *object,
54 const QString &propertyName,
55 const QVariant &expression,
56 bool isLiteralValue) = 0;
57 virtual void resetBindingForInvalidProperty(QObject *object,
58 const QString &propertyName) = 0;
59
60private:
61 Q_DISABLE_COPY(QQmlDebugStatesDelegate)
62};
63
64#endif
65
66QT_END_NAMESPACE
67
68#endif // QQMLDEBUGSTATESDELEGATE_P_H