summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlenginedebug_p.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-09-23 01:37:50 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-09-23 01:37:50 (GMT)
commitc60dfe1f2732670eb48d98c9772815d37a16ec3c (patch)
tree80a9b76b72d4bea96f0706264a5ed17311b2073e /src/declarative/qml/qmlenginedebug_p.h
parentf918c8c60369154f45008a0e7e3af3bf5121abd5 (diff)
downloadQt-c60dfe1f2732670eb48d98c9772815d37a16ec3c.zip
Qt-c60dfe1f2732670eb48d98c9772815d37a16ec3c.tar.gz
Qt-c60dfe1f2732670eb48d98c9772815d37a16ec3c.tar.bz2
Add some of the functionality from the old debugger (e.g. dynamic updating of property values, watch table, colouring of tree widget items).
Diffstat (limited to 'src/declarative/qml/qmlenginedebug_p.h')
-rw-r--r--src/declarative/qml/qmlenginedebug_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlenginedebug_p.h b/src/declarative/qml/qmlenginedebug_p.h
index 87b2ffd..f935c04 100644
--- a/src/declarative/qml/qmlenginedebug_p.h
+++ b/src/declarative/qml/qmlenginedebug_p.h
@@ -61,9 +61,12 @@ QT_BEGIN_NAMESPACE
class QmlEngine;
class QmlContext;
+class QmlWatcher;
class QDataStream;
+
class QmlEngineDebugServer : public QmlDebugService
{
+ Q_OBJECT
public:
QmlEngineDebugServer(QObject * = 0);
@@ -74,6 +77,7 @@ public:
QString objectName;
QString objectType;
int objectId;
+ int contextId;
};
struct QmlObjectProperty {
@@ -90,6 +94,9 @@ public:
protected:
virtual void messageReceived(const QByteArray &);
+private Q_SLOTS:
+ void propertyChanged(int id, int objectId, const QByteArray &property, const QVariant &value);
+
private:
void buildObjectList(QDataStream &, QmlContext *);
void buildObjectDump(QDataStream &, QObject *, bool);
@@ -97,6 +104,7 @@ private:
QmlObjectProperty propertyData(QObject *, int);
static QList<QmlEngine *> m_engines;
+ QmlWatcher *m_watch;
};
Q_DECLARATIVE_EXPORT QDataStream &operator<<(QDataStream &, const QmlEngineDebugServer::QmlObjectData &);
Q_DECLARATIVE_EXPORT QDataStream &operator>>(QDataStream &, QmlEngineDebugServer::QmlObjectData &);