Use Qt built-in non-breaking space variable

This commit is contained in:
Chocobo1
2023-09-01 18:17:02 +08:00
parent 65930ddf94
commit ff80e0ce66
3 changed files with 2 additions and 5 deletions

View File

@@ -94,8 +94,7 @@ namespace
// check is there need for digits after decimal separator
const int precision = (argValue < 10) ? friendlyUnitPrecision(unit) : 0;
return QLocale::system().toString(argValue, 'f', precision)
+ C_NON_BREAKING_SPACE
+ unitString(unit, true);
+ QChar::Nbsp + unitString(unit, true);
}
}