From a773d3646769ba6134adfc7353b64d7f73b2e543 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 2 Nov 2015 16:06:12 +0100 Subject: QmlProfiler: Remove "Source code not available" A missing tag is much better to express that piece of information. The original message would have to be parsed in order to figure out that it's actually not source code. Change-Id: I3cc7cad26c4fad84f5d1aa63c59a84523109dd2e Reviewed-by: Simon Hausmann --- tools/qmlprofiler/qmlprofilerdata.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/qmlprofiler') diff --git a/tools/qmlprofiler/qmlprofilerdata.cpp b/tools/qmlprofiler/qmlprofilerdata.cpp index 9465e4931d..fd2b5acea1 100644 --- a/tools/qmlprofiler/qmlprofilerdata.cpp +++ b/tools/qmlprofiler/qmlprofilerdata.cpp @@ -233,9 +233,7 @@ void QmlProfilerData::addQmlEvent(QQmlProfilerDefinitions::RangeType type, QString details; // generate details string - if (data.isEmpty()) - details = tr("Source code not available"); - else { + if (!data.isEmpty()) { details = data.join(QLatin1Char(' ')).replace( QLatin1Char('\n'), QLatin1Char(' ')).simplified(); QRegExp rewrite(QStringLiteral("\\(function \\$(\\w+)\\(\\) \\{ (return |)(.+) \\}\\)")); -- cgit v1.2.3