QmlProfiler: Debug messages are no QML events ...

In particular, they can also occur if we're not AcquiringData.

Change-Id: Ia310206ee15973fc5b2fa1c607d7c9a48b6f435f
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-18 13:13:46 +01:00
parent 4416acc16d
commit d58b714a3a
5 changed files with 18 additions and 4 deletions

View File

@@ -157,10 +157,8 @@ void QmlProfilerTraceClient::setRequestedFeatures(quint64 features)
connect(d->messageClient.data(), &QDebugMessageClient::message, this, [this](QtMsgType type,
const QString &text, const QmlDebug::QDebugContextInfo &context)
{
emit this->rangedEvent(QmlDebug::DebugMessage, QmlDebug::MaximumRangeType,
type, context.timestamp, 0, text,
QmlDebug::QmlEventLocation(context.file, context.line, 1), 0, 0,
0, 0, 0);
emit debugMessage(type, context.timestamp, text,
QmlDebug::QmlEventLocation(context.file, context.line, 1));
});
} else {
d->messageClient.reset();