Fix resizing for game filter dialog (#4149)
This commit is contained in:
parent
a49c4865bb
commit
ef78fdf342
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue