fix games model parameter order and correct parameter names

This commit is contained in:
ebbit1q 2025-11-03 18:04:08 +01:00
parent 412f144922
commit df37e22fc2
3 changed files with 17 additions and 17 deletions

View file

@ -156,8 +156,8 @@ void GameSelector::actSetFilter()
return; return;
gameListProxyModel->setGameFilters( gameListProxyModel->setGameFilters(
dlg.getHideBuddiesOnlyGames(), dlg.getHideFullGames(), dlg.getHideGamesThatStarted(), dlg.getHideBuddiesOnlyGames(), dlg.getHideIgnoredUserGames(), dlg.getHideFullGames(),
dlg.getHidePasswordProtectedGames(), dlg.getHideIgnoredUserGames(), dlg.getHideNotBuddyCreatedGames(), dlg.getHideGamesThatStarted(), dlg.getHidePasswordProtectedGames(), dlg.getHideNotBuddyCreatedGames(),
dlg.getHideOpenDecklistGames(), dlg.getGameNameFilter(), dlg.getCreatorNameFilter(), dlg.getGameTypeFilter(), dlg.getHideOpenDecklistGames(), dlg.getGameNameFilter(), dlg.getCreatorNameFilter(), dlg.getGameTypeFilter(),
dlg.getMaxPlayersFilterMin(), dlg.getMaxPlayersFilterMax(), dlg.getMaxGameAge(), dlg.getMaxPlayersFilterMin(), dlg.getMaxPlayersFilterMax(), dlg.getMaxGameAge(),
dlg.getShowOnlyIfSpectatorsCanWatch(), dlg.getShowSpectatorPasswordProtected(), dlg.getShowOnlyIfSpectatorsCanWatch(), dlg.getShowSpectatorPasswordProtected(),

View file

@ -286,11 +286,11 @@ GamesProxyModel::GamesProxyModel(QObject *parent, const UserListProxy *_userList
setDynamicSortFilter(true); setDynamicSortFilter(true);
} }
void GamesProxyModel::setGameFilters(bool _showBuddiesOnlyGames, void GamesProxyModel::setGameFilters(bool _hideBuddiesOnlyGames,
bool _hideIgnoredUserGames, bool _hideIgnoredUserGames,
bool _showFullGames, bool _hideFullGames,
bool _showGamesThatStarted, bool _hideGamesThatStarted,
bool _showPasswordProtectedGames, bool _hidePasswordProtectedGames,
bool _hideNotBuddyCreatedGames, bool _hideNotBuddyCreatedGames,
bool _hideOpenDecklistGames, bool _hideOpenDecklistGames,
const QString &_gameNameFilter, const QString &_gameNameFilter,
@ -307,11 +307,11 @@ void GamesProxyModel::setGameFilters(bool _showBuddiesOnlyGames,
#if (QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(6, 9, 0))
beginFilterChange(); beginFilterChange();
#endif #endif
hideBuddiesOnlyGames = _showBuddiesOnlyGames; hideBuddiesOnlyGames = _hideBuddiesOnlyGames;
hideIgnoredUserGames = _hideIgnoredUserGames; hideIgnoredUserGames = _hideIgnoredUserGames;
hideFullGames = _showFullGames; hideFullGames = _hideFullGames;
hideGamesThatStarted = _showGamesThatStarted; hideGamesThatStarted = _hideGamesThatStarted;
hidePasswordProtectedGames = _showPasswordProtectedGames; hidePasswordProtectedGames = _hidePasswordProtectedGames;
hideNotBuddyCreatedGames = _hideNotBuddyCreatedGames; hideNotBuddyCreatedGames = _hideNotBuddyCreatedGames;
hideOpenDecklistGames = _hideOpenDecklistGames; hideOpenDecklistGames = _hideOpenDecklistGames;
gameNameFilter = _gameNameFilter; gameNameFilter = _gameNameFilter;
@ -375,9 +375,9 @@ void GamesProxyModel::loadFilterParameters(const QMap<int, QString> &allGameType
} }
} }
setGameFilters(gameFilters.isHideFullGames(), gameFilters.isHideGamesThatStarted(), setGameFilters(gameFilters.isHideBuddiesOnlyGames(), gameFilters.isHideIgnoredUserGames(),
gameFilters.isHidePasswordProtectedGames(), gameFilters.isHideIgnoredUserGames(), gameFilters.isHideFullGames(), gameFilters.isHideGamesThatStarted(),
gameFilters.isHideBuddiesOnlyGames(), gameFilters.isHideNotBuddyCreatedGames(), gameFilters.isHidePasswordProtectedGames(), gameFilters.isHideNotBuddyCreatedGames(),
gameFilters.isHideOpenDecklistGames(), gameFilters.getGameNameFilter(), gameFilters.isHideOpenDecklistGames(), gameFilters.getGameNameFilter(),
gameFilters.getCreatorNameFilter(), newGameTypeFilter, gameFilters.getMinPlayers(), gameFilters.getCreatorNameFilter(), newGameTypeFilter, gameFilters.getMinPlayers(),
gameFilters.getMaxPlayers(), gameFilters.getMaxGameAge(), gameFilters.getMaxPlayers(), gameFilters.getMaxGameAge(),

View file

@ -166,11 +166,11 @@ public:
{ {
return showOnlyIfSpectatorsCanSeeHands; return showOnlyIfSpectatorsCanSeeHands;
} }
void setGameFilters(bool _showBuddiesOnlyGames, void setGameFilters(bool _hideBuddiesOnlyGames,
bool _hideIgnoredUserGames, bool _hideIgnoredUserGames,
bool _showFullGames, bool _hideFullGames,
bool _showGamesThatStarted, bool _hideGamesThatStarted,
bool _showPasswordProtectedGames, bool _hidePasswordProtectedGames,
bool _hideNotBuddyCreatedGames, bool _hideNotBuddyCreatedGames,
bool _hideOpenDecklistGames, bool _hideOpenDecklistGames,
const QString &_gameNameFilter, const QString &_gameNameFilter,