mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Improve scaling of speed graphs
Make Y axis scale to fix on predetermined nice looking positions
This commit is contained in:
@@ -79,11 +79,10 @@ namespace Utils
|
||||
QString boostVersionString();
|
||||
QString libtorrentVersionString();
|
||||
|
||||
QString unitString(SizeUnit unit);
|
||||
QString unitString(SizeUnit unit, bool isSpeed = false);
|
||||
|
||||
// return the best user friendly storage unit (B, KiB, MiB, GiB, TiB)
|
||||
// value must be given in bytes
|
||||
bool friendlyUnit(qint64 sizeInBytes, qreal &val, SizeUnit &unit);
|
||||
QString friendlyUnit(qint64 bytesValue, bool isSpeed = false);
|
||||
int friendlyUnitPrecision(SizeUnit unit);
|
||||
qint64 sizeInBytes(qreal size, SizeUnit unit);
|
||||
|
||||
Reference in New Issue
Block a user