| 2219 | } |
| 2220 | |
| 2221 | void SpreadsheetView::plotDataDistributionFit(QAction* action) { |
| 2222 | auto* dlg = new PlotDataDialog(m_spreadsheet, Plot::PlotType::Histogram); |
| 2223 | const auto distribution = static_cast<nsl_sf_stats_distribution>(action->data().toInt()); |
| 2224 | dlg->setFitDistribution(distribution); |
| 2225 | |
| 2226 | // use all spreadsheet columns if no columns are selected |
| 2227 | auto columns = selectedColumns(true); |
| 2228 | if (columns.isEmpty()) |
| 2229 | columns = m_spreadsheet->children<Column>(); |
| 2230 | dlg->setSelectedColumns(columns); |
| 2231 | |
| 2232 | dlg->exec(); |
| 2233 | } |
| 2234 | |
| 2235 | void SpreadsheetView::fillSelectedCellsWithRowNumbers() { |
| 2236 | const auto& columns = selectedColumns(false); |
nothing calls this directly
no test coverage detected