mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 12:03:55 -07:00
updated game created coloumn text
This commit is contained in:
parent
8ac1469fdb
commit
a729b1c966
3 changed files with 39 additions and 32 deletions
|
|
@ -8,10 +8,8 @@
|
|||
#include "gametypemap.h"
|
||||
#include "pb/serverinfo_game.pb.h"
|
||||
|
||||
class ServerInfo_User;
|
||||
|
||||
class GamesModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
private:
|
||||
QList<ServerInfo_Game> gameList;
|
||||
QMap<int, QString> rooms;
|
||||
|
|
@ -19,6 +17,7 @@ private:
|
|||
|
||||
static const int NUM_COLS = 8;
|
||||
static const int SECS_PER_MIN = 60;
|
||||
static const int SECS_PER_TEN_MIN = 600;
|
||||
static const int SECS_PER_HOUR = 3600;
|
||||
public:
|
||||
static const int SORT_ROLE = Qt::UserRole+1;
|
||||
|
|
@ -42,6 +41,8 @@ public:
|
|||
const QMap<int, GameTypeMap> &getGameTypes() { return gameTypes; }
|
||||
};
|
||||
|
||||
class ServerInfo_User;
|
||||
|
||||
class GamesProxyModel : public QSortFilterProxyModel {
|
||||
Q_OBJECT
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue