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

This commit is contained in:
baldurk committed 2016-11-21 12:35:38 +01:00
1 parent f336643e37
commit 2483fd776a
3 files changed
+32 -6

No files matched your search

@@ -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));