GUI: Fix TR Units - Size and Time - more... (#1927)

* GUI: TR Units - Size and Time

Added translation for these units:
B, KB, MB, GB, TB
h, m, s

Added missing text:
Games: - text in the lower left corner
Compatibility...
Update database
View report
Submit a report

Fixed the size of the settings menu

* Audio Backend

* Fixed the size of the settings menu
This commit is contained in:
DanielSvoboda 2024-12-27 17:23:11 -03:00 committed by GitHub
parent f4c1d827d5
commit abe85fd3e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 1963 additions and 11 deletions

View file

@ -30,10 +30,11 @@ struct GameInfo {
CompatibilityEntry compatibility = CompatibilityEntry{CompatibilityStatus::Unknown};
};
class GameListUtils {
class GameListUtils : public QObject {
Q_OBJECT
public:
static QString FormatSize(qint64 size) {
static const QStringList suffixes = {"B", "KB", "MB", "GB", "TB"};
static const QStringList suffixes = {tr("B"), tr("KB"), tr("MB"), tr("GB"), tr("TB")};
int suffixIndex = 0;
double gameSize = static_cast<double>(size);