diff options
Diffstat (limited to 'tests/auto/qml/debugger/shared/debugutil_p.h')
-rw-r--r-- | tests/auto/qml/debugger/shared/debugutil_p.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/shared/debugutil_p.h b/tests/auto/qml/debugger/shared/debugutil_p.h index d29bef4362..38e6cb2b12 100644 --- a/tests/auto/qml/debugger/shared/debugutil_p.h +++ b/tests/auto/qml/debugger/shared/debugutil_p.h @@ -130,4 +130,23 @@ private: int m_receivedBindErrors; }; +class QQmlInspectorResultRecipient : public QObject +{ + Q_OBJECT +public: + QQmlInspectorResultRecipient(QObject *parent = 0) : + QObject(parent), lastResponseId(-1), lastResult(false) {} + + int lastResponseId; + bool lastResult; + +public slots: + + void recordResponse(int requestId, bool result) + { + lastResponseId = requestId; + lastResult = result; + } +}; + #endif // DEBUGUTIL_P_H |