Commit f6f59c08 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Use the 4.8 QDataStream



The 4.8 Version of QDataStream is the lowest common denominator.        temporaryOutDataStream.setVersion(QDataStream::Qt_4_8);

Change-Id: I4aa681473b6349bd3e859f49d7233ff4a6d2911b
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent d8d862f2
......@@ -100,6 +100,7 @@ QDataStream &operator<<(QDataStream &out, const ValuesChangedCommand &command)
command.m_keyNumber = keyCounter;
QByteArray outDataStreamByteArray;
QDataStream temporaryOutDataStream(&outDataStreamByteArray, QIODevice::WriteOnly);
temporaryOutDataStream.setVersion(QDataStream::Qt_4_8);
temporaryOutDataStream << command.valueChanges();;
......@@ -125,6 +126,7 @@ void readSharedMemory(qint32 key, QVector<PropertyValueContainer> *valueChangeVe
if (canAttach) {
QDataStream in(QByteArray::fromRawData(static_cast<const char*>(sharedMemory.constData()), sharedMemory.size()));
in.setVersion(QDataStream::Qt_4_8);
in >> *valueChangeVector;
}
}
......
......@@ -93,6 +93,7 @@ void NodeInstanceClientProxy::writeCommand(const QVariant &command)
{
QByteArray block;
QDataStream out(&block, QIODevice::WriteOnly);
out.setVersion(QDataStream::Qt_4_8);
out << quint32(0);
out << quint32(m_writeCommandCounter);
m_writeCommandCounter++;
......@@ -164,6 +165,7 @@ void NodeInstanceClientProxy::readDataStream()
break;
QDataStream in(m_socket);
in.setVersion(QDataStream::Qt_4_8);
if (m_blockSize == 0) {
in >> m_blockSize;
......
......@@ -93,6 +93,8 @@ void NodeInstanceClientProxy::writeCommand(const QVariant &command)
{
QByteArray block;
QDataStream out(&block, QIODevice::WriteOnly);
out.setVersion(QDataStream::Qt_4_8);
out << quint32(0);
out << quint32(m_writeCommandCounter);
m_writeCommandCounter++;
......@@ -164,6 +166,8 @@ void NodeInstanceClientProxy::readDataStream()
break;
QDataStream in(m_socket);
in.setVersion(QDataStream::Qt_4_8);
if (m_blockSize == 0) {
in >> m_blockSize;
......
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