############################################################################## ############################ Dialogs ###################################### ##############################################################################
| 1549 | // ############################ Dialogs ###################################### |
| 1550 | // ############################################################################## |
| 1551 | void MatrixView::showColumnStatistics() { |
| 1552 | #ifndef SDK |
| 1553 | if (selectedColumnCount() > 0) { |
| 1554 | QString dlgTitle(m_matrix->name() + QStringLiteral(" column statistics")); |
| 1555 | QVector<Column*> columns; |
| 1556 | for (int col = 0; col < m_matrix->columnCount(); ++col) { |
| 1557 | if (isColumnSelected(col, false)) { |
| 1558 | QString headerString = m_tableView->model()->headerData(col, Qt::Horizontal).toString(); |
| 1559 | columns << new Column(headerString, static_cast<QVector<QVector<double>>*>(m_matrix->data())->at(col)); |
| 1560 | } |
| 1561 | } |
| 1562 | auto* dlg = new StatisticsDialog(dlgTitle, columns); |
| 1563 | dlg->showStatistics(); |
| 1564 | if (dlg->exec() == QDialog::Accepted) { |
| 1565 | qDeleteAll(columns); |
| 1566 | columns.clear(); |
| 1567 | } |
| 1568 | } |
| 1569 | #endif |
| 1570 | } |
| 1571 | |
| 1572 | void MatrixView::modifyValues() { |
| 1573 | #ifndef SDK |
nothing calls this directly
no test coverage detected