diff options
Diffstat (limited to 'ui/qt/qt_ui_utils.h')
-rw-r--r-- | ui/qt/qt_ui_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/qt_ui_utils.h b/ui/qt/qt_ui_utils.h index a5c80e297f..531018eb41 100644 --- a/ui/qt/qt_ui_utils.h +++ b/ui/qt/qt_ui_utils.h @@ -153,6 +153,14 @@ const QString bits_s_to_qstring(const double bits_s); */ const QString file_size_to_qstring(const gint64 size); +/** Convert a time_t value to a human-readable QString using QDateTime. + * + * @param ti_time The value to convert. + * + * @return A QString representation of the file size in SI units. + */ +const QString time_t_to_qstring(time_t ti_time); + /** * Round the current size of a font up to its next "smooth" size. * If a smooth size can't be found the font is left unchanged. |