forked from qt-creator/qt-creator
Make it clear that the numbers in the pixmap scale are pixels
By showing the same numbers with units in the labels we avoid leading people to assume bytes as unit. Change-Id: I56d2ca5f21434fd24a305aebd434371438da7ebb Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -209,6 +209,11 @@ const QVariantList PixmapCacheModel::getEventDetails(int index) const
|
||||
|
||||
if (ev->pixmapEventType != PixmapCacheCountChanged) {
|
||||
d->addVP(result, tr("Duration"), ev->duration );
|
||||
} else {
|
||||
QVariantMap res;
|
||||
res.insert(tr("Cache Size"), QVariant(QString::fromLatin1("%1 px")
|
||||
.arg(ev->cacheSize)));
|
||||
result << res;
|
||||
}
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user