mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
fixed game list update bug, minor optimizations, restrict client protocol output to QT_DEBUG mode
This commit is contained in:
parent
118b575e58
commit
ae19d3dc4b
13 changed files with 75 additions and 50 deletions
|
|
@ -6,8 +6,8 @@
|
|||
#include <QList>
|
||||
#include <QSet>
|
||||
#include "gametypemap.h"
|
||||
#include "pb/serverinfo_game.pb.h"
|
||||
|
||||
class ServerInfo_Game;
|
||||
class ServerInfo_User;
|
||||
|
||||
class GamesModel : public QAbstractTableModel {
|
||||
|
|
@ -18,7 +18,6 @@ private:
|
|||
QMap<int, GameTypeMap> gameTypes;
|
||||
public:
|
||||
GamesModel(const QMap<int, QString> &_rooms, const QMap<int, GameTypeMap> &_gameTypes, QObject *parent = 0);
|
||||
~GamesModel();
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const { return parent.isValid() ? 0 : gameList.size(); }
|
||||
int columnCount(const QModelIndex &/*parent*/ = QModelIndex()) const { return 8; }
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue