Fix resizing for game filter dialog (#4149)

This commit is contained in:
tooomm 2020-10-30 01:21:01 +01:00 committed by GitHub
parent a49c4865bb
commit ef78fdf342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,8 +150,10 @@ DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes,
auto *rightGrid = new QGridLayout; auto *rightGrid = new QGridLayout;
rightGrid->addWidget(gameTypeFilterGroupBox, 0, 0, 1, 1); rightGrid->addWidget(gameTypeFilterGroupBox, 0, 0, 1, 1);
rightGrid->addWidget(spectatorsGroupBox, 1, 0, 1, 1); rightGrid->addWidget(spectatorsGroupBox, 1, 0, 1, 1);
auto *rightColumn = new QVBoxLayout; auto *rightColumn = new QVBoxLayout;
rightColumn->addLayout(rightGrid); rightColumn->addLayout(rightGrid);
rightColumn->addStretch();
auto *hbox = new QHBoxLayout; auto *hbox = new QHBoxLayout;
hbox->addLayout(leftColumn); hbox->addLayout(leftColumn);
@ -167,6 +169,8 @@ DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes,
setLayout(mainLayout); setLayout(mainLayout);
setWindowTitle(tr("Filter games")); setWindowTitle(tr("Filter games"));
setFixedHeight(sizeHint().height());
} }
void DlgFilterGames::actOk() void DlgFilterGames::actOk()
@ -306,4 +310,4 @@ bool DlgFilterGames::getShowOnlyIfSpectatorsCanChat() const
bool DlgFilterGames::getShowOnlyIfSpectatorsCanSeeHands() const bool DlgFilterGames::getShowOnlyIfSpectatorsCanSeeHands() const
{ {
return showOnlyIfSpectatorsCanSeeHands->isEnabled() && showOnlyIfSpectatorsCanSeeHands->isChecked(); return showOnlyIfSpectatorsCanSeeHands->isEnabled() && showOnlyIfSpectatorsCanSeeHands->isChecked();
} }