1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-10 16:26:32 -05:00

Add helper function for creating a readable byte size string.

This commit is contained in:
archshift
2015-08-31 21:35:33 -07:00
parent afd06675fa
commit f297a59985
2 changed files with 16 additions and 0 deletions

View File

@@ -5,6 +5,10 @@
#pragma once
#include <QFont>
#include <QString>
/// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
QFont GetMonospaceFont();
/// Convert a size in bytes into a readable format (KiB, MiB, etc.)
QString ReadableByteSize(qulonglong size);