Qt: Fix build on older Qt

This commit is contained in:
Vicki Pfau 2022-04-20 18:59:48 -07:00
parent 1d23aa2085
commit 96fe40efc1
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ void AssetTile::selectIndex(int index) {
data = mTileCacheGetTile(tileCache, index, paletteId);
m_ui.tileId->setText(QString::number(dispIndex));
m_ui.paletteId->setText(QString::number(paletteId));
m_ui.address->setText(QLatin1String("%0%1%2")
m_ui.address->setText(QString("%0%1%2")
.arg(m_addressWidth == 4 ? index >= m_boundary / 2 : 0)
.arg(m_addressWidth == 4 ? ":" : "x")
.arg(dispIndex * bpp | base, m_addressWidth, 16, QChar('0')));