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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user