aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-18 17:03:10 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-10-15 08:20:28 +0000
commitc161a413ffeed9f7584adc26a727ddcdf06f8c33 (patch)
tree29c28e1f602cfe750de106edf870399f2244cf4c /tools
parent6aedee898e51804863f4e94f5bdcaece9398fe0a (diff)
qmlprofiler: Use server's datastream version for communication
As qmlprofiler doesn't support datastream version negotiation we have to use the data stream version the server uses by default: QT_4_7. Change-Id: I0fa89f82f0f6c651e8e377bd578f8d7ae61045ab Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlprofiler/qmlprofilerclient.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/qmlprofiler/qmlprofilerclient.cpp b/tools/qmlprofiler/qmlprofilerclient.cpp
index e9298f226a..f6ed4f5723 100644
--- a/tools/qmlprofiler/qmlprofilerclient.cpp
+++ b/tools/qmlprofiler/qmlprofilerclient.cpp
@@ -141,6 +141,7 @@ void QmlProfilerClient::sendRecordingStatus()
{
QByteArray ba;
QDataStream stream(&ba, QIODevice::WriteOnly);
+ stream.setVersion(QDataStream::Qt_4_7);
stream << isRecording();
sendMessage(ba);
}
@@ -149,6 +150,7 @@ void QmlProfilerClient::messageReceived(const QByteArray &data)
{
QByteArray rwData = data;
QDataStream stream(&rwData, QIODevice::ReadOnly);
+ stream.setVersion(QDataStream::Qt_4_7);
qint64 time;
int messageType;