Skip to content

Commit

Permalink
Fix issue #954, missing ReportOptionsDialog PageLayout set before cal…
Browse files Browse the repository at this point in the history
…l report.
  • Loading branch information
arnost00 committed Apr 2, 2024
1 parent 8c3b93c commit 3fc3a24
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion quickevent/app/quickevent/plugins/Runs/src/runswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,21 @@ void RunsWidget::settleDownInPartWidget(::PartWidget *part_widget)
auto *a = new qfw::Action(tr("&Competitors with rented cards"));
connect(a, &qfw::Action::triggered, [this]() {
qff::MainWindow *fwk = qff::MainWindow::frameWork();
quickevent::gui::ReportOptionsDialog dlg(fwk);
dlg.setPersistentSettingsId("competitorsWithRentedCards");
dlg.loadPersistentSettings();
dlg.setClassFilterVisible(false);
dlg.setStartListOptionsVisible(false);
dlg.setStartListPrintVacantsVisible(false);
dlg.setPageLayoutVisible(true);
dlg.setStartTimeFormatVisible(false);
dlg.setStartlistOrderFirstByVisible(false);
if(!dlg.exec())
return;
auto opts = dlg.optionsMap();
QVariantMap props;
props["stageId"] = selectedStageId();
props["options"] = QVariantMap();
props["options"] = opts;
qf::qmlwidgets::reports::ReportViewWidget::showReport(fwk
, getPlugin<RunsPlugin>()->findReportFile("competitorsWithCardRent.qml")
, QVariant()
Expand Down

0 comments on commit 3fc3a24

Please sign in to comment.