diff options
author | Bea Lam <bea.lam@nokia.com> | 2009-10-19 23:54:57 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2009-10-19 23:54:57 (GMT) |
commit | 515cb0f40654e54384fd75c7042b9fa25d3df193 (patch) | |
tree | b30ca86a22c4f02c59bb4ec574d85f415e2d03a2 /src/declarative/debugger/qmldebug.h | |
parent | 0ae3e10fecfe9f6241e8752bdd4deab8663988b7 (diff) | |
download | Qt-515cb0f40654e54384fd75c7042b9fa25d3df193.zip Qt-515cb0f40654e54384fd75c7042b9fa25d3df193.tar.gz Qt-515cb0f40654e54384fd75c7042b9fa25d3df193.tar.bz2 |
Add EVAL_EXPRESSION so clients can evaluate an expression within the
current object's context.
Diffstat (limited to 'src/declarative/debugger/qmldebug.h')
-rw-r--r-- | src/declarative/debugger/qmldebug.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/declarative/debugger/qmldebug.h b/src/declarative/debugger/qmldebug.h index 681ee08..153a10f 100644 --- a/src/declarative/debugger/qmldebug.h +++ b/src/declarative/debugger/qmldebug.h @@ -12,6 +12,7 @@ class QmlDebugObjectExpressionWatch; class QmlDebugEnginesQuery; class QmlDebugRootContextQuery; class QmlDebugObjectQuery; +class QmlDebugExpressionQuery; class QmlDebugPropertyReference; class QmlDebugContextReference; class QmlDebugObjectReference; @@ -44,6 +45,9 @@ public: QObject *parent = 0); QmlDebugObjectQuery *queryObjectRecursive(const QmlDebugObjectReference &, QObject *parent = 0); + QmlDebugExpressionQuery *queryExpressionResult(int objectDebugId, + const QString &expr, + QObject *parent = 0); private: Q_DECLARE_PRIVATE(QmlEngineDebug) @@ -287,4 +291,22 @@ private: }; +class Q_DECLARATIVE_EXPORT QmlDebugExpressionQuery : public QmlDebugQuery +{ +Q_OBJECT +public: + virtual ~QmlDebugExpressionQuery(); + QString expression() const; + QVariant result() const; +private: + friend class QmlEngineDebug; + friend class QmlEngineDebugPrivate; + QmlDebugExpressionQuery(QObject *); + QmlEngineDebug *m_client; + int m_queryId; + QString m_expr; + QVariant m_result; + +}; + #endif // QMLDEBUG_H |