Commit 5e1ff49f 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>
(cherry picked from commit 36f9c318)
parent 0303f3b1
......@@ -279,6 +279,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;
......@@ -335,6 +336,7 @@ void NodeInstanceServerProxy::readFirstDataStream()
break;
QDataStream in(m_firstSocket.data());
in.setVersion(QDataStream::Qt_4_8);
if (m_firstBlockSize == 0) {
in >> m_firstBlockSize;
......@@ -372,6 +374,7 @@ void NodeInstanceServerProxy::readSecondDataStream()
break;
QDataStream in(m_secondSocket.data());
in.setVersion(QDataStream::Qt_4_8);
if (m_secondBlockSize == 0) {
in >> m_secondBlockSize;
......@@ -409,6 +412,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