Reduce data dependency for GamesProxyModel

This commit is contained in:
Gavin Bisesi 2017-03-17 23:29:42 -04:00 committed by Gavin Bisesi
parent d65a444ac5
commit c5aa75d4d1
3 changed files with 7 additions and 6 deletions

View file

@ -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);