Change button to filter to games created by buddies, set default filter settings to be very permissive.

Took 45 minutes
This commit is contained in:
Lukas Brübach 2025-11-15 22:30:16 +01:00
parent 8022135d8c
commit 1cb45433a2
9 changed files with 76 additions and 52 deletions

View file

@ -129,7 +129,8 @@ private:
bool hidePasswordProtectedGames;
bool hideNotBuddyCreatedGames;
bool hideOpenDecklistGames;
QString gameNameFilter, creatorNameFilter;
QString gameNameFilter;
QStringList creatorNameFilters;
QSet<int> gameTypeFilter;
quint32 maxPlayersFilterMin, maxPlayersFilterMax;
QTime maxGameAge;
@ -179,9 +180,9 @@ public:
{
return gameNameFilter;
}
QString getCreatorNameFilter() const
QStringList getCreatorNameFilters() const
{
return creatorNameFilter;
return creatorNameFilters;
}
QSet<int> getGameTypeFilter() const
{
@ -227,7 +228,7 @@ public:
bool _hideNotBuddyCreatedGames,
bool _hideOpenDecklistGames,
const QString &_gameNameFilter,
const QString &_creatorNameFilter,
const QStringList &_creatorNameFilter,
const QSet<int> &_gameTypeFilter,
int _maxPlayersFilterMin,
int _maxPlayersFilterMax,
@ -278,9 +279,9 @@ public:
gameNameFilter = value;
refresh();
}
void setCreatorNameFilter(const QString &value)
void setCreatorNameFilters(const QStringList &values)
{
creatorNameFilter = value;
creatorNameFilters = values;
refresh();
}
void setGameTypeFilter(const QSet<int> &value)