* Play Time

* SDL

* QT

* Sort / Formatting

* Timer 1 minute

* remove the seconds

removes the seconds from the screen, but in the play_time.txt file it continues to record the seconds for better accuracy, and the screen is cleaner

* fixes the invisible 0

* SDL . . .

* Fix Timer
This commit is contained in:
DanielSvoboda 2024-10-09 07:30:51 -03:00 committed by GitHub
parent 6fe26173dc
commit d4eae28ce2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 303 additions and 7 deletions

View file

@ -29,6 +29,7 @@ public Q_SLOTS:
private:
void SetTableItem(int row, int column, QString itemStr);
void SetRegionFlag(int row, int column, QString itemStr);
QString GetPlayTime(const std::string& serial);
QList<QAction*> m_columnActs;
GameInfoClass* game_inf_get = nullptr;
bool ListSortedAsc = true;
@ -68,6 +69,8 @@ public:
case 6:
return a.version < b.version;
case 7:
return a.play_time < b.play_time;
case 8:
return a.path < b.path;
default:
return false;
@ -89,9 +92,11 @@ public:
case 6:
return a.version > b.version;
case 7:
return a.play_time > b.play_time;
case 8:
return a.path > b.path;
default:
return false;
}
}
};
};