QmlProfiler: make details string match between versions

Change-Id: I21ba44d6160aed5fb4685570bb38da6d83e63096
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Christiaan Janssen
2013-07-11 12:09:12 +02:00
committed by Kai Koehne
parent 483e607f27
commit a90a841d42

View File

@@ -74,7 +74,7 @@ QString getInitialDetails(const QmlProfilerSimpleModel::QmlEventData &event)
QString details;
// generate details string
if (event.data.isEmpty())
details = QmlProfilerProcessedModel::tr("Source code not available");
details = QmlProfilerProcessedModel::tr("Source code not available.");
else {
details = event.data.join(QLatin1String(" ")).replace(QLatin1Char('\n'),QLatin1Char(' ')).simplified();
QRegExp rewrite(QLatin1String("\\(function \\$(\\w+)\\(\\) \\{ (return |)(.+) \\}\\)"));