mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-22 16:00:38 -05:00
Improve code style.
This commit is contained in:
parent
4e5e5c71ca
commit
2e011d5362
29 changed files with 95 additions and 89 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue