mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Decrease QDataStream::Version enum for support Qt version 5.5.x (Ubuntu
Xenial) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5494 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -261,7 +261,7 @@ void SingleApplicationPrivate::slotConnectionEstablished()
|
|||||||
if( nextConnSocket->waitForReadyRead( 100 ) ) {
|
if( nextConnSocket->waitForReadyRead( 100 ) ) {
|
||||||
// read the fields in same order and format as written
|
// read the fields in same order and format as written
|
||||||
QDataStream headerStream(nextConnSocket);
|
QDataStream headerStream(nextConnSocket);
|
||||||
headerStream.setVersion( QDataStream::Qt_5_6 );
|
headerStream.setVersion( QDataStream::Qt_5_5 );
|
||||||
|
|
||||||
// Read the header to know the message length
|
// Read the header to know the message length
|
||||||
quint64 msgLen = 0;
|
quint64 msgLen = 0;
|
||||||
@@ -271,7 +271,7 @@ void SingleApplicationPrivate::slotConnectionEstablished()
|
|||||||
// Read the message body
|
// Read the message body
|
||||||
QByteArray msgBytes = nextConnSocket->read(msgLen);
|
QByteArray msgBytes = nextConnSocket->read(msgLen);
|
||||||
QDataStream readStream(msgBytes);
|
QDataStream readStream(msgBytes);
|
||||||
readStream.setVersion( QDataStream::Qt_5_6 );
|
readStream.setVersion( QDataStream::Qt_5_5 );
|
||||||
|
|
||||||
// server name
|
// server name
|
||||||
QByteArray latin1Name;
|
QByteArray latin1Name;
|
||||||
|
|||||||
Reference in New Issue
Block a user