mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Use Qt built-in non-breaking space variable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user