forked from qt-creator/qt-creator
Rename occurrences of "title" to "displayName"
Change-Id: Ic26122d319dd56a4666a02bf6979c292581473ea Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -137,16 +137,15 @@ const QVariantList MemoryUsageModel::getLabels() const
|
||||
const QVariantList MemoryUsageModel::getEventDetails(int index) const
|
||||
{
|
||||
Q_D(const MemoryUsageModel);
|
||||
static QString title = QStringLiteral("title");
|
||||
|
||||
QVariantList result;
|
||||
const MemoryUsageModelPrivate::Range *ev = &d->range(index);
|
||||
|
||||
QVariantMap res;
|
||||
if (ev->allocated >= -ev->deallocated)
|
||||
res.insert(title, tr("Memory Allocated"));
|
||||
res.insert(QLatin1String("displayName"), tr("Memory Allocated"));
|
||||
else
|
||||
res.insert(title, tr("Memory Freed"));
|
||||
res.insert(QLatin1String("displayName"), tr("Memory Freed"));
|
||||
result << res;
|
||||
res.clear();
|
||||
|
||||
|
@@ -199,9 +199,9 @@ const QVariantList PixmapCacheModel::getEventDetails(int index) const
|
||||
{
|
||||
QVariantMap res;
|
||||
if (ev->pixmapEventType == PixmapCacheCountChanged)
|
||||
res.insert(QLatin1String("title"), QVariant(QLatin1String("Image Cached")));
|
||||
res.insert(QLatin1String("displayName"), QVariant(QLatin1String("Image Cached")));
|
||||
else if (ev->pixmapEventType == PixmapLoadingStarted)
|
||||
res.insert(QLatin1String("title"), QVariant(QLatin1String("Image Loaded")));
|
||||
res.insert(QLatin1String("displayName"), QVariant(QLatin1String("Image Loaded")));
|
||||
result << res;
|
||||
}
|
||||
|
||||
|
@@ -165,7 +165,7 @@ const QVariantList SceneGraphTimelineModel::getEventDetails(int index) const
|
||||
|
||||
{
|
||||
QVariantMap res;
|
||||
res.insert(QLatin1String("title"), QVariant(labelForSGType(
|
||||
res.insert(QLatin1String("displayName"), QVariant(labelForSGType(
|
||||
d->seenPolishAndSync ? ev->sgEventType : SceneGraphGUIThread)));
|
||||
result << res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user