| 2192 | } |
| 2193 | |
| 2194 | void SpreadsheetView::plotData(QAction* action) { |
| 2195 | auto type = static_cast<Plot::PlotType>(action->data().toInt()); |
| 2196 | auto* dlg = new PlotDataDialog(m_spreadsheet, type); |
| 2197 | |
| 2198 | // use all spreadsheet columns if no columns are selected |
| 2199 | auto columns = selectedColumns(true); |
| 2200 | if (columns.isEmpty()) |
| 2201 | columns = m_spreadsheet->children<Column>(); |
| 2202 | |
| 2203 | dlg->setSelectedColumns(columns); |
| 2204 | dlg->exec(); |
| 2205 | } |
| 2206 | |
| 2207 | void SpreadsheetView::plotAnalysisData(QAction* action) { |
| 2208 | auto* dlg = new PlotDataDialog(m_spreadsheet); |
nothing calls this directly
no test coverage detected