mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
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:
parent
d60f9c6142
commit
e6ec3d0c2b
9 changed files with 317 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue