Qt: Fix remaining non-Multimedia Qt 6 build issues

This commit is contained in:
Vicki Pfau 2023-08-18 21:45:08 -07:00
parent 613ce0286a
commit 5c2a55884b
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ QString MemoryModel::decodeText(const QByteArray& bytes) {
text = QString::fromUtf8(array);
} else {
for (uint8_t c : bytes) {
text.append((uchar) c);
text.append(QChar(c));
}
}
return text;
@ -488,7 +488,7 @@ void MemoryModel::paintEvent(QPaintEvent*) {
for (int i = 0; i < text.size() && i < m_align; ++i) {
const QChar c = text.at(i);
const QPointF location(viewport()->size().width() - (16 - x - i) * m_margins.right() / 17.0 - m_letterWidth * 0.5, yp);
if (c < 256) {
if (c.unicode() < 256) {
painter.drawStaticText(location, m_staticLatin1[c.cell()]);
} else {
painter.drawText(location, c);