summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2012-02-22 14:27:18 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-22 15:27:28 +0100
commitfcae81ce68ed68b1e1e9f82291841ef2b6f2f962 (patch)
treef5b31db97393a24a70eb0007dd39e67170d8fc34 /tests
parent5b3d57e8f88dd9adc6787043d7f8e0d305ab4860 (diff)
DebugMessageService: Remove unneeded data
Do not send version info of QMessageLogContext. Change-Id: I32dd4a548ee2b918e5d04dcdffd4d5545fd2f54f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/debugger/qdebugmessageservice/tst_qdebugmessageservice.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/auto/declarative/debugger/qdebugmessageservice/tst_qdebugmessageservice.cpp b/tests/auto/declarative/debugger/qdebugmessageservice/tst_qdebugmessageservice.cpp
index 0e15a2dc77..94738dc083 100644
--- a/tests/auto/declarative/debugger/qdebugmessageservice/tst_qdebugmessageservice.cpp
+++ b/tests/auto/declarative/debugger/qdebugmessageservice/tst_qdebugmessageservice.cpp
@@ -81,7 +81,6 @@ struct LogEntry {
QtMsgType type;
QString message;
- int version;
int line;
QString file;
QString function;
@@ -136,8 +135,7 @@ void QDeclarativeDebugMsgClient::messageReceived(const QByteArray &data)
QByteArray file;
QByteArray function;
int line;
- int version;
- ds >> type >> message >> version >> file >> line >> function;
+ ds >> type >> message >> file >> line >> function;
QVERIFY(ds.atEnd());
QVERIFY(type >= QtDebugMsg);
@@ -145,9 +143,8 @@ void QDeclarativeDebugMsgClient::messageReceived(const QByteArray &data)
LogEntry entry((QtMsgType)type, QString::fromUtf8(message));
entry.line = line;
- entry.version = version;
- entry.file = QString::fromLatin1(file);
- entry.function = QString::fromLatin1(function);
+ entry.file = QString::fromUtf8(file);
+ entry.function = QString::fromUtf8(function);
logBuffer << entry;
emit debugOutput();
} else {