Add option for the flow layout to keep a fixed grid size

This commit is contained in:
baldurk
2016-11-21 12:35:38 +01:00
parent f336643e37
commit 2483fd776a
3 changed files with 32 additions and 6 deletions
@@ -126,6 +126,8 @@ CaptureDialog::CaptureDialog(CaptureContext *ctx, OnCaptureMethod captureCallbac
FlowLayout *optionsFlow = new FlowLayout(ui->optionsGroup, -1, 3, 3);
optionsFlow->setFixedGrid(true);
for(QObject *o : options)
optionsFlow->addWidget(qobject_cast<QWidget *>(o));