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;
gameListProxyModel->setGameFilters(
dlg.getHideBuddiesOnlyGames(), dlg.getHideFullGames(), dlg.getHideGamesThatStarted(),
dlg.getHidePasswordProtectedGames(), dlg.getHideIgnoredUserGames(), dlg.getHideNotBuddyCreatedGames(),
dlg.getHideBuddiesOnlyGames(), dlg.getHideIgnoredUserGames(), dlg.getHideFullGames(),
dlg.getHideGamesThatStarted(), dlg.getHidePasswordProtectedGames(), dlg.getHideNotBuddyCreatedGames(),
dlg.getHideOpenDecklistGames(), dlg.getGameNameFilter(), dlg.getCreatorNameFilter(), dlg.getGameTypeFilter(),
dlg.getMaxPlayersFilterMin(), dlg.getMaxPlayersFilterMax(), dlg.getMaxGameAge(),
dlg.getShowOnlyIfSpectatorsCanWatch(), dlg.getShowSpectatorPasswordProtected(),

View file

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

View file

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