Commit 73464a1d authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlJSDebug: Support version 2 fo QDebugMessageService



Change-Id: Icc7af5ace287370a5f295e5c2d5dbee0e2c97610
Reviewed-by: default avatarAurindam Jana <aurindam.jana@nokia.com>
parent fe068869
...@@ -55,6 +55,7 @@ void QDebugMessageClient::messageReceived(const QByteArray &data) ...@@ -55,6 +55,7 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
ds >> command; ds >> command;
if (command == "MESSAGE") { if (command == "MESSAGE") {
if (serviceVersion() == 1.0) {
QByteArray messagePacket; QByteArray messagePacket;
ds >> messagePacket; ds >> messagePacket;
...@@ -63,6 +64,12 @@ void QDebugMessageClient::messageReceived(const QByteArray &data) ...@@ -63,6 +64,12 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
QDataStream ms(messagePacket); QDataStream ms(messagePacket);
ms >> type >> debugMessage; ms >> type >> debugMessage;
emit message(QtMsgType(type), QString::fromUtf8(debugMessage.data())); emit message(QtMsgType(type), QString::fromUtf8(debugMessage.data()));
} else {
int type;
QByteArray debugMessage;
ds >> type >> debugMessage;
emit message(QtMsgType(type), QString::fromUtf8(debugMessage));
}
} }
} }
......
Supports Markdown
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