mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Use Qt built-in non-breaking space variable
This commit is contained in:
@@ -267,8 +267,7 @@ QString Utils::Misc::friendlyUnit(const qint64 bytes, const bool isSpeed, const
|
||||
|
||||
const int digitPrecision = (precision >= 0) ? precision : friendlyUnitPrecision(result->unit);
|
||||
return Utils::String::fromDouble(result->value, digitPrecision)
|
||||
+ C_NON_BREAKING_SPACE
|
||||
+ unitString(result->unit, isSpeed);
|
||||
+ QChar::Nbsp + unitString(result->unit, isSpeed);
|
||||
}
|
||||
|
||||
int Utils::Misc::friendlyUnitPrecision(const SizeUnit unit)
|
||||
|
||||
Reference in New Issue
Block a user