MCPcopy Create free account
hub / github.com/KDE/labplot / plotData

Method plotData

src/frontend/spreadsheet/SpreadsheetView.cpp:2194–2205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2192}
2193
2194void 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
2207void SpreadsheetView::plotAnalysisData(QAction* action) {
2208 auto* dlg = new PlotDataDialog(m_spreadsheet);

Callers

nothing calls this directly

Calls 4

setSelectedColumnsMethod · 0.80
execMethod · 0.80
dataMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected