mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
Change filter hint text to "Games shown: X / Y" and fix user-game segfault (#3973)
This commit is contained in:
parent
9246c190fa
commit
1988e4558f
4 changed files with 51 additions and 61 deletions
|
|
@ -11,8 +11,8 @@ class QTreeView;
|
|||
class GamesModel;
|
||||
class GamesProxyModel;
|
||||
class QPushButton;
|
||||
class QLabel;
|
||||
class QCheckBox;
|
||||
class QLabel;
|
||||
class AbstractClient;
|
||||
class TabSupervisor;
|
||||
class TabRoom;
|
||||
|
|
@ -45,10 +45,11 @@ private:
|
|||
GamesModel *gameListModel;
|
||||
GamesProxyModel *gameListProxyModel;
|
||||
QPushButton *filterButton, *clearFilterButton, *createButton, *joinButton, *spectateButton;
|
||||
QLabel *alteredFiltersLabel;
|
||||
QLabel *filteredGamesLabel;
|
||||
const bool showFilters;
|
||||
GameTypeMap gameTypeMap;
|
||||
|
||||
void setAlteredFiltersText(int numAlteredFilters);
|
||||
void setFilteredGamesLabel();
|
||||
|
||||
public:
|
||||
GameSelector(AbstractClient *_client,
|
||||
|
|
@ -57,7 +58,7 @@ public:
|
|||
const QMap<int, QString> &_rooms,
|
||||
const QMap<int, GameTypeMap> &_gameTypes,
|
||||
const bool restoresettings,
|
||||
const bool showfilters,
|
||||
const bool _showfilters,
|
||||
QWidget *parent = nullptr);
|
||||
void retranslateUi();
|
||||
void processGameInfo(const ServerInfo_Game &info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue