Increased number of digits after the decimal point for Gibibytes and above

This commit is contained in:
thalieht 2016-09-26 13:26:25 +03:00
parent bec4617128
commit 311b060c70
2 changed files with 10 additions and 1 deletions

View file

@ -88,6 +88,7 @@ namespace Utils
// 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);
bool isPreviewable(const QString& extension);