[qet] qet/qet: [5494] Decrease QDataStream:: Version enum for support Qt version 5.5.x (Ubuntu

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5494
Author:   scorpio810
Date:     2018-08-24 22:09:23 +0200 (Fri, 24 Aug 2018)
Log Message:
-----------
Decrease QDataStream::Version enum for support Qt version 5.5.x (Ubuntu
Xenial)

Modified Paths:
--------------
    trunk/SingleApplication/singleapplication_p.cpp

Modified: trunk/SingleApplication/singleapplication_p.cpp
===================================================================
--- trunk/SingleApplication/singleapplication_p.cpp	2018-08-23 20:58:41 UTC (rev 5493)
+++ trunk/SingleApplication/singleapplication_p.cpp	2018-08-24 20:09:23 UTC (rev 5494)
@@ -261,7 +261,7 @@
     if( nextConnSocket->waitForReadyRead( 100 ) ) {
         // read the fields in same order and format as written
         QDataStream headerStream(nextConnSocket);
-        headerStream.setVersion( QDataStream::Qt_5_6 );
+        headerStream.setVersion( QDataStream::Qt_5_5 );
 
         // Read the header to know the message length
         quint64 msgLen = 0;
@@ -271,7 +271,7 @@
            // Read the message body
            QByteArray msgBytes = nextConnSocket->read(msgLen);
            QDataStream readStream(msgBytes);
-           readStream.setVersion( QDataStream::Qt_5_6 );
+           readStream.setVersion( QDataStream::Qt_5_5 );
 
            // server name
            QByteArray latin1Name;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/