Display download/upload speed in dock icon

Implementation is based on Transmission sources.

Closes #2761
Closes #3671
Closes #7098
Closes #11350
Closes #18527

PR #19595
This commit is contained in:
Nick Korotysh 2023-10-16 08:45:24 +02:00 committed by GitHub
parent d60f9c6142
commit e6ec3d0c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 317 additions and 12 deletions

View file

@ -81,6 +81,7 @@ namespace Utils::Misc
// return the best user friendly storage unit (B, KiB, MiB, GiB, TiB)
// value must be given in bytes
QString friendlyUnit(qint64 bytes, bool isSpeed = false, int precision = -1);
QString friendlyUnitCompact(qint64 bytes);
int friendlyUnitPrecision(SizeUnit unit);
qint64 sizeInBytes(qreal size, SizeUnit unit);