mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 10:33:54 -07:00
Reduce data dependency for GamesProxyModel
This commit is contained in:
parent
d65a444ac5
commit
c5aa75d4d1
3 changed files with 7 additions and 6 deletions
|
|
@ -46,7 +46,7 @@ class ServerInfo_User;
|
|||
class GamesProxyModel : public QSortFilterProxyModel {
|
||||
Q_OBJECT
|
||||
private:
|
||||
ServerInfo_User *ownUser;
|
||||
bool ownUserIsRegistered;
|
||||
bool showBuddiesOnlyGames;
|
||||
bool unavailableGamesVisible;
|
||||
bool showPasswordProtectedGames;
|
||||
|
|
@ -56,7 +56,7 @@ private:
|
|||
|
||||
static const int DEFAULT_MAX_PLAYERS_MAX = 99;
|
||||
public:
|
||||
GamesProxyModel(QObject *parent = 0, ServerInfo_User *_ownUser = 0);
|
||||
GamesProxyModel(QObject *parent = 0, bool _ownUserIsRegistered = false);
|
||||
|
||||
bool getShowBuddiesOnlyGames() const {return showBuddiesOnlyGames; }
|
||||
void setShowBuddiesOnlyGames(bool _showBuddiesOnlyGames);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue