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

Method showRowStatistics

src/frontend/matrix/MatrixView.cpp:1581–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581void MatrixView::showRowStatistics() {
1582#ifndef SDK
1583 if (selectedRowCount() > 0) {
1584 QString dlgTitle(m_matrix->name() + QStringLiteral(" row statistics"));
1585 QVector<Column*> columns;
1586 for (int row = 0; row < m_matrix->rowCount(); ++row) {
1587 if (isRowSelected(row, false)) {
1588 QString headerString = m_tableView->model()->headerData(row, Qt::Vertical).toString();
1589 // TODO: mode
1590 columns << new Column(headerString, m_matrix->rowCells<double>(row, 0, m_matrix->columnCount() - 1));
1591 }
1592 }
1593 auto* dlg = new StatisticsDialog(dlgTitle, columns);
1594 dlg->showStatistics();
1595 if (dlg->exec() == QDialog::Accepted) {
1596 qDeleteAll(columns);
1597 columns.clear();
1598 }
1599 }
1600#endif
1601}
1602
1603void MatrixView::exportToFits(const QString& fileName, const int exportTo) const {
1604#ifndef SDK

Callers

nothing calls this directly

Calls 9

execMethod · 0.80
nameMethod · 0.45
rowCountMethod · 0.45
toStringMethod · 0.45
headerDataMethod · 0.45
modelMethod · 0.45
columnCountMethod · 0.45
showStatisticsMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected