| 2205 | } |
| 2206 | |
| 2207 | void SpreadsheetView::plotAnalysisData(QAction* action) { |
| 2208 | auto* dlg = new PlotDataDialog(m_spreadsheet); |
| 2209 | const auto analysisAction = static_cast<XYAnalysisCurve::AnalysisAction>(action->data().toInt()); |
| 2210 | dlg->setAnalysisAction(analysisAction); |
| 2211 | |
| 2212 | // use all spreadsheet columns if no columns are selected |
| 2213 | auto columns = selectedColumns(true); |
| 2214 | if (columns.isEmpty()) |
| 2215 | columns = m_spreadsheet->children<Column>(); |
| 2216 | dlg->setSelectedColumns(columns); |
| 2217 | |
| 2218 | dlg->exec(); |
| 2219 | } |
| 2220 | |
| 2221 | void SpreadsheetView::plotDataDistributionFit(QAction* action) { |
| 2222 | auto* dlg = new PlotDataDialog(m_spreadsheet, Plot::PlotType::Histogram); |
nothing calls this directly
no test coverage detected