4#ifndef QQMLDEBUGSTATESDELEGATE_P_H
5#define QQMLDEBUGSTATESDELEGATE_P_H
18#include <QtQml/qtqmlglobal.h>
19#include <QtCore/QList>
20#include <QtCore/QPointer>
21#include <QtCore/private/qglobal_p.h>
25#if !QT_CONFIG(qml_debug)
27class QQmlDebugStatesDelegate {};
37class QQmlDebugStatesDelegate
40 QQmlDebugStatesDelegate() {}
43 virtual ~QQmlDebugStatesDelegate() {}
45 virtual void buildStatesList(
bool cleanList,
46 const QList<QPointer<QObject> > &instances) = 0;
47 virtual void updateBinding(QQmlContext *context,
48 const QQmlProperty &property,
49 const QVariant &expression,
bool isLiteralValue,
50 const QString &fileName,
int line,
int column,
51 bool *inBaseState) = 0;
52 virtual bool setBindingForInvalidProperty(QObject *object,
53 const QString &propertyName,
54 const QVariant &expression,
55 bool isLiteralValue) = 0;
56 virtual void resetBindingForInvalidProperty(QObject *object,
57 const QString &propertyName) = 0;
60 Q_DISABLE_COPY(QQmlDebugStatesDelegate)