mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 04:53:54 -07:00
final (?) spectator code, small bugfix
This commit is contained in:
parent
fa16d86283
commit
a543c9b90c
22 changed files with 453 additions and 190 deletions
|
|
@ -2,11 +2,13 @@
|
|||
#define GAMESELECTOR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "gamesmodel.h"
|
||||
#include "client.h"
|
||||
|
||||
class QPushButton;
|
||||
class QCheckBox;
|
||||
class QTreeView;
|
||||
class GamesModel;
|
||||
class GamesProxyModel;
|
||||
|
||||
class GameSelector : public QWidget {
|
||||
Q_OBJECT
|
||||
|
|
@ -16,6 +18,7 @@ public:
|
|||
void disableGameList();
|
||||
void retranslateUi();
|
||||
private slots:
|
||||
void showFullGamesChanged(int state);
|
||||
void actCreate();
|
||||
void actRefresh();
|
||||
void actJoin();
|
||||
|
|
@ -25,7 +28,9 @@ private:
|
|||
|
||||
QTreeView *gameListView;
|
||||
GamesModel *gameListModel;
|
||||
GamesProxyModel *gameListProxyModel;
|
||||
QPushButton *createButton, *joinButton, *spectateButton;
|
||||
QCheckBox *showFullGamesCheckBox;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue