diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-02-21 12:11:27 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-02-21 12:32:33 +0100 |
commit | 59ef28851776c1c23dca3aa1b1ae1a02b7663b8b (patch) | |
tree | 273eb2d5418d03deeea74ad4122d5a675a681b99 /src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp | |
parent | 5a0e1c8b431573f203bd28e06b5fcbfbb237ecae (diff) | |
download | qt-creator-59ef28851776c1c23dca3aa1b1ae1a02b7663b8b.tar.gz |
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: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp index ba469e7ec4..3e6883f5a0 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp @@ -95,7 +95,8 @@ QString getInitialDetails(const QmlProfilerDataModel::QmlEventData &event) bool match = rewrite.exactMatch(details); if (match) 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); } } |