aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-03-28 12:26:04 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-28 12:36:39 +0100
commit1abeeefcb43a2a0d8b9b7beb6018800663e4b035 (patch)
treea5833453d2a81a918b5da956ada4103fcbf092a9 /tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp
parent02dbf5b558f6c424ff2bfb79cf9849141c8185dc (diff)
Fix failing autotest due to wrong Qt datastream version
Actually use the exact version that we decided by the connection handshake. Change-Id: Ib3cbecd57366a3bb52cc48242027968c12213e80 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp')
-rw-r--r--tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp b/tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp
index 610d80d559..022ba8c440 100644
--- a/tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp
+++ b/tests/auto/qml/debugger/shared/qqmlenginedebugclient.cpp
@@ -84,7 +84,8 @@ QQmlEngineDebugClient::QQmlEngineDebugClient(
QQmlDebugConnection *connection)
: QQmlDebugClient(QLatin1String("QmlDebugger"), connection),
m_nextId(0),
- m_valid(false)
+ m_valid(false),
+ m_connection(connection)
{
}
@@ -467,6 +468,9 @@ void QQmlEngineDebugClient::messageReceived(const QByteArray &data)
{
m_valid = false;
QDataStream ds(data);
+ ds.setVersion(m_connection->dataStreamVersion());
+
+
int queryId;
QByteArray type;
ds >> type >> queryId;