From 212c58f99a5bc3a162c9c5b5f981831f43113bcb Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Fri, 30 Mar 2012 21:22:47 +0200 Subject: [PATCH] check 'show unavailable games' by default in ShowGamesOfUser dialog --- cockatrice/src/dlg_filter_games.cpp | 2 ++ cockatrice/src/gameselector.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cockatrice/src/dlg_filter_games.cpp b/cockatrice/src/dlg_filter_games.cpp index 78e55972..30127ae7 100644 --- a/cockatrice/src/dlg_filter_games.cpp +++ b/cockatrice/src/dlg_filter_games.cpp @@ -17,9 +17,11 @@ DlgFilterGames::DlgFilterGames(const QMap &allGameTypes, QWidget * QLabel *gameNameFilterLabel = new QLabel(tr("Game &description:")); gameNameFilterEdit = new QLineEdit; + gameNameFilterLabel->setBuddy(gameNameFilterEdit); QLabel *creatorNameFilterLabel = new QLabel(tr("&Creator name:")); creatorNameFilterEdit = new QLineEdit; + creatorNameFilterLabel->setBuddy(creatorNameFilterEdit); QVBoxLayout *gameTypeFilterLayout = new QVBoxLayout; QMapIterator gameTypesIterator(allGameTypes); diff --git a/cockatrice/src/gameselector.cpp b/cockatrice/src/gameselector.cpp index d729e37e..8e8cc4ed 100644 --- a/cockatrice/src/gameselector.cpp +++ b/cockatrice/src/gameselector.cpp @@ -31,6 +31,8 @@ GameSelector::GameSelector(AbstractClient *_client, TabSupervisor *_tabSuperviso gameListView->setRootIsDecorated(true); if (_room) gameListView->header()->hideSection(1); + else + gameListProxyModel->setUnavailableGamesVisible(true); gameListView->header()->setResizeMode(1, QHeaderView::ResizeToContents); filterButton = new QPushButton;