Improve code style.

This commit is contained in:
Felix Geyer 2012-04-18 22:08:22 +02:00
parent 4e5e5c71ca
commit 2e011d5362
29 changed files with 95 additions and 89 deletions

View file

@ -20,7 +20,9 @@
#include <QtCore/QLocale>
#include <QtCore/QStringList>
QString Tools::humanReadableFileSize(qint64 bytes)
namespace Tools {
QString humanReadableFileSize(qint64 bytes)
{
double size = bytes;
@ -35,3 +37,5 @@ QString Tools::humanReadableFileSize(qint64 bytes)
return QString("%1 %2").arg(QLocale().toString(size, 'f', 2), units.at(i));
}
} // namespace Tools