mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
everything compiles again; enough for today
This commit is contained in:
parent
dd5ae4d74d
commit
cb0e4d07e4
29 changed files with 340 additions and 766 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include <QAbstractTableModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QList>
|
||||
#include "client.h"
|
||||
#include "protocol_datastructures.h"
|
||||
|
||||
class GamesModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
|
|
@ -16,12 +16,12 @@ public:
|
|||
QVariant data(const QModelIndex &index, int role) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
||||
|
||||
const ServerGame &getGame(int row);
|
||||
const ServerGameInfo &getGame(int row);
|
||||
void cleanList();
|
||||
public slots:
|
||||
void updateGameList(const ServerGame &game);
|
||||
void updateGameList(const ServerGameInfo &game);
|
||||
private:
|
||||
QList<ServerGame> gameList;
|
||||
QList<ServerGameInfo> gameList;
|
||||
};
|
||||
|
||||
class GamesProxyModel : public QSortFilterProxyModel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue