forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user