From 59ef28851776c1c23dca3aa1b1ae1a02b7663b8b Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 21 Feb 2014 12:11:27 +0100 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp index ba469e7ec42..3e6883f5a07 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); } }