mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
fix games model parameter order and correct parameter names
This commit is contained in:
parent
412f144922
commit
df37e22fc2
3 changed files with 17 additions and 17 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue