diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2012-03-21 14:28:40 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-03-27 15:04:31 +0200 |
commit | 520d98028f37e550c0cfec34b9c10278c4a44aff (patch) | |
tree | 3a64434d02f3b1fa5009de88a7832ad8c56f184f /src/libs/installer/fileutils.h | |
parent | 564ef626886496ea5e6685f0fc4f96c283245123 (diff) |
introduce general humanReadableSize method
Change-Id: I4731be424cf2207e8cc2320ab9e442d02c29aeda
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'src/libs/installer/fileutils.h')
-rw-r--r-- | src/libs/installer/fileutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/fileutils.h b/src/libs/installer/fileutils.h index 4e634a210..22b7dc584 100644 --- a/src/libs/installer/fileutils.h +++ b/src/libs/installer/fileutils.h @@ -64,6 +64,8 @@ private: QSet<QString> m_paths; }; + QString INSTALLER_EXPORT humanReadableSize(const qint64 &size, int precision = 2); + void INSTALLER_EXPORT openForRead(QIODevice *dev, const QString &name); void INSTALLER_EXPORT openForWrite(QIODevice *dev, const QString &name); void INSTALLER_EXPORT openForAppend(QIODevice *dev, const QString &name); |