Commit 87b2d5cd authored by Ulf Hermann's avatar Ulf Hermann

QmlDebug: Add category and timestamp to debug message client

Change-Id: Id81c443251b237b56e515ede8dc579427e13d782
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent 1b8c1af2
......@@ -65,6 +65,14 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
info.line = line;
info.file = QString::fromUtf8(file);
info.function = QString::fromUtf8(function);
info.timestamp = -1;
if (!ds.atEnd()) {
QByteArray category;
ds >> category;
info.category = QString::fromUtf8(category);
if (!ds.atEnd())
ds >> info.timestamp;
}
emit message(QtMsgType(type), QString::fromUtf8(debugMessage), info);
}
}
......
......@@ -42,6 +42,8 @@ struct QDebugContextInfo
int line;
QString file;
QString function;
QString category;
qint64 timestamp;
};
class QMLDEBUG_EXPORT QDebugMessageClient : public QmlDebugClient
......
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