diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-11-02 16:06:12 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-11-05 08:42:50 +0000 |
commit | a773d3646769ba6134adfc7353b64d7f73b2e543 (patch) | |
tree | 9d0f0797067031441fca4e0d8e614a1e3074b84a /tools/qmlprofiler | |
parent | f2244103ff7a9b61fc7bcb7e920d8cc6b2f5f226 (diff) |
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 <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler')
-rw-r--r-- | tools/qmlprofiler/qmlprofilerdata.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 |)(.+) \\}\\)")); |