forked from qt-creator/qt-creator
QmlDebug: Properly set the debug messages feature
We get notified about debug messages, after all. Change-Id: Ie6fcdfa68b36969c264ebc6e54e6359c8d723584 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -147,6 +147,7 @@ void QmlProfilerTraceClient::setRequestedFeatures(quint64 features)
|
||||
connect(d->messageClient.data(), &QDebugMessageClient::message, this, [this](QtMsgType type,
|
||||
const QString &text, const QmlDebug::QDebugContextInfo &context)
|
||||
{
|
||||
d->updateFeatures(ProfileDebugMessages);
|
||||
emit debugMessage(type, context.timestamp, text,
|
||||
QmlDebug::QmlEventLocation(context.file, context.line, 1));
|
||||
});
|
||||
@@ -174,7 +175,7 @@ bool QmlProfilerTraceClientPrivate::updateFeatures(ProfileFeature feature)
|
||||
if (!(requestedFeatures & flag))
|
||||
return false;
|
||||
if (!(recordedFeatures & flag)) {
|
||||
recordedFeatures |= (flag | 1ULL << ProfileDebugMessages);
|
||||
recordedFeatures |= flag;
|
||||
emit q->recordedFeaturesChanged(recordedFeatures);
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user