| 1579 | } |
| 1580 | |
| 1581 | void 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 | |
| 1603 | void MatrixView::exportToFits(const QString& fileName, const int exportTo) const { |
| 1604 | #ifndef SDK |
nothing calls this directly
no test coverage detected