Commit 36f9c318 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: using 4.8 datastream also in Qt 5


Change-Id: If208a0e3d8342fb62fff1ec2475134cdf4f9dcee
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent cda0c6c3
......@@ -299,6 +299,7 @@ static void writeCommandToSocket(const QVariant &command, QLocalSocket *socket,
if(socket) {
QByteArray block;
QDataStream out(&block, QIODevice::WriteOnly);
out.setVersion(QDataStream::Qt_4_8);
out << quint32(0);
out << quint32(commandCounter);
out << command;
......@@ -358,6 +359,7 @@ void NodeInstanceServerProxy::readFirstDataStream()
break;
QDataStream in(m_firstSocket.data());
in.setVersion(QDataStream::Qt_4_8);
if (m_firstBlockSize == 0) {
in >> m_firstBlockSize;
......@@ -395,6 +397,7 @@ void NodeInstanceServerProxy::readSecondDataStream()
break;
QDataStream in(m_secondSocket.data());
in.setVersion(QDataStream::Qt_4_8);
if (m_secondBlockSize == 0) {
in >> m_secondBlockSize;
......@@ -432,6 +435,7 @@ void NodeInstanceServerProxy::readThirdDataStream()
break;
QDataStream in(m_thirdSocket.data());
in.setVersion(QDataStream::Qt_4_8);
if (m_thirdBlockSize == 0) {
in >> m_thirdBlockSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment