moment/src/utils.cpp

17 lines
274 B
C++
Raw Normal View History

#include <QLocale>
#include <QDebug>
#include "utils.h"
Utils::Utils() {
// Initialization
};
QString Utils::formattedBytes(qint64 bytes, int precision) {
return m_locale.formattedDataSize(
bytes, precision, QLocale::DataSizeTraditionalFormat
);
};