Commit 59ef2885 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Accept qrc:/ as local files when setting initial details



If this is not done a lot of Creating and Compiling events look bad.

Task-number: QTCREATORBUG-11525
Change-Id: I2af584d3d0468cbc54960c4e16036e9bcf42511b
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 5a0e1c8b
...@@ -95,7 +95,8 @@ QString getInitialDetails(const QmlProfilerDataModel::QmlEventData &event) ...@@ -95,7 +95,8 @@ QString getInitialDetails(const QmlProfilerDataModel::QmlEventData &event)
bool match = rewrite.exactMatch(details); bool match = rewrite.exactMatch(details);
if (match) if (match)
details = rewrite.cap(1) + QLatin1String(": ") + rewrite.cap(3); details = rewrite.cap(1) + QLatin1String(": ") + rewrite.cap(3);
if (details.startsWith(QLatin1String("file://"))) if (details.startsWith(QLatin1String("file://")) ||
details.startsWith(QLatin1String("qrc:/")))
details = details.mid(details.lastIndexOf(QLatin1Char('/')) + 1); details = details.mid(details.lastIndexOf(QLatin1Char('/')) + 1);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment