Debugger: Convert to Tr::tr

Change-Id: I5d2475c790851c68f9997ac6af72b5eaca58482d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2022-07-05 15:37:08 +02:00
parent bb3549a721
commit 9894c6eaf0
143 changed files with 2272 additions and 36880 deletions

View File

@@ -2469,12 +2469,15 @@ void WatchModel::showEditValue(const WatchItem *item)
if (size == nbytes) {
std::memcpy(im.bits(), bits, nbytes);
auto v = m_separatedView->prepareObject<ImageViewer>(item);
v->setInfo(item->address ?
Tr::tr("%1 Object at %2").arg(item->type, item->hexAddress()) :
Tr::tr("%1 Object at Unknown Address").arg(item->type) + " " +
ImageViewer::tr("Size: %1x%2, %3 byte, format: %4, depth: %5")
.arg(width).arg(height).arg(nbytes).arg(im.format()).arg(im.depth())
);
v->setInfo(item->address
? Tr::tr("%1 Object at %2").arg(item->type, item->hexAddress())
: Tr::tr("%1 Object at Unknown Address").arg(item->type) + " "
+ Tr::tr("Size: %1x%2, %3 byte, format: %4, depth: %5")
.arg(width)
.arg(height)
.arg(nbytes)
.arg(im.format())
.arg(im.depth()));
v->setImage(im);
}
} else if (format == DisplayLatin1String