Round zoom number display to 1 decimal place

This commit is contained in:
Marcus Huderle 2018-09-29 09:13:54 -05:00
parent 497f069d20
commit 7e6726bef7

View file

@ -349,7 +349,7 @@ void Editor::onHoveredMapMetatileChanged(int x, int y) {
.arg(x)
.arg(y)
.arg(QString("%1").arg(tile, 3, 16, QChar('0')).toUpper())
.arg(QString::number(pow(scale_base, scale_exp))));
.arg(QString::number(pow(scale_base, scale_exp), 'g', 2)));
}
}