mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 12:03:55 -07:00
filter buddies only
This commit is contained in:
parent
e038534a51
commit
089edc53d0
7 changed files with 56 additions and 3 deletions
|
|
@ -46,6 +46,7 @@ class GamesProxyModel : public QSortFilterProxyModel {
|
|||
Q_OBJECT
|
||||
private:
|
||||
ServerInfo_User *ownUser;
|
||||
bool showBuddiesOnlyGames;
|
||||
bool unavailableGamesVisible;
|
||||
bool showPasswordProtectedGames;
|
||||
QString gameNameFilter, creatorNameFilter;
|
||||
|
|
@ -56,6 +57,8 @@ private:
|
|||
public:
|
||||
GamesProxyModel(QObject *parent = 0, ServerInfo_User *_ownUser = 0);
|
||||
|
||||
bool getShowBuddiesOnlyGames() const {return showBuddiesOnlyGames; }
|
||||
void setShowBuddiesOnlyGames(bool _showBuddiesOnlyGames);
|
||||
bool getUnavailableGamesVisible() const { return unavailableGamesVisible; }
|
||||
void setUnavailableGamesVisible(bool _unavailableGamesVisible);
|
||||
bool getShowPasswordProtectedGames() const { return showPasswordProtectedGames; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue