diff options
Diffstat (limited to 'src/declarative/debugger/qdeclarativeenginedebugservice_p.h')
-rw-r--r-- | src/declarative/debugger/qdeclarativeenginedebugservice_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/declarative/debugger/qdeclarativeenginedebugservice_p.h b/src/declarative/debugger/qdeclarativeenginedebugservice_p.h index d3e5c79297..7c74c63801 100644 --- a/src/declarative/debugger/qdeclarativeenginedebugservice_p.h +++ b/src/declarative/debugger/qdeclarativeenginedebugservice_p.h @@ -57,7 +57,6 @@ #include <QtCore/qurl.h> #include <QtCore/qvariant.h> -#include <QWeakPointer> QT_BEGIN_NAMESPACE @@ -65,13 +64,14 @@ class QDeclarativeEngine; class QDeclarativeContext; class QDeclarativeWatcher; class QDataStream; -class QDeclarativeState; +class QDeclarativeDebugStatesDelegate; class QDeclarativeEngineDebugService : public QDeclarativeDebugService { Q_OBJECT public: QDeclarativeEngineDebugService(QObject * = 0); + ~QDeclarativeEngineDebugService(); struct QDeclarativeObjectData { QUrl url; @@ -98,6 +98,8 @@ public: void remEngine(QDeclarativeEngine *); void objectCreated(QDeclarativeEngine *, QObject *); + void setStatesDelegate(QDeclarativeDebugStatesDelegate *); + static QDeclarativeEngineDebugService *instance(); protected: @@ -112,7 +114,6 @@ private: void buildObjectList(QDataStream &, QDeclarativeContext *); void buildObjectDump(QDataStream &, QObject *, bool, bool); void buildStatesList(QDeclarativeContext *, bool); - void buildStatesList(QObject *obj); QDeclarativeObjectData objectData(QObject *); QDeclarativeObjectProperty propertyData(QObject *, int); QVariant valueContents(const QVariant &defaultValue) const; @@ -122,7 +123,7 @@ private: QList<QDeclarativeEngine *> m_engines; QDeclarativeWatcher *m_watch; - QList<QWeakPointer<QDeclarativeState> > m_allStates; + QDeclarativeDebugStatesDelegate *m_statesDelegate; }; Q_DECLARATIVE_PRIVATE_EXPORT QDataStream &operator<<(QDataStream &, const QDeclarativeEngineDebugService::QDeclarativeObjectData &); Q_DECLARATIVE_PRIVATE_EXPORT QDataStream &operator>>(QDataStream &, QDeclarativeEngineDebugService::QDeclarativeObjectData &); |