QmlProfiler: revert to fixed layout for detail windows

The dynamic layout creates more problems than it solves. A fixed layout
with proper elision and fixed window width certainly looks better.

Also, the view has to add the colons after the labels now.

Change-Id: I649351a742bd129ea9738359bac27e55e29d6a93
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-07-07 14:03:33 +02:00
parent 4937441091
commit d4585cf20c
4 changed files with 12 additions and 9 deletions

View File

@@ -294,10 +294,7 @@ QVariantMap RangeTimelineModel::details(int index) const
result.insert(QStringLiteral("displayName"), categoryLabel(d->rangeType));
result.insert(tr("Duration"), QmlProfilerBaseModel::formatTime(range(index).duration));
QString detailsString = types[id].data;
if (detailsString.length() > 40)
detailsString = detailsString.left(40) + QLatin1String("...");
result.insert(tr("Details"), detailsString);
result.insert(tr("Details"), types[id].data);
result.insert(tr("Location"), types[id].displayName);
return result;
}