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

Method showColumnStatistics

src/frontend/matrix/MatrixView.cpp:1551–1570  ·  view source on GitHub ↗

############################################################################## ############################ Dialogs ###################################### ##############################################################################

Source from the content-addressed store, hash-verified

1549// ############################ Dialogs ######################################
1550// ##############################################################################
1551void 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
1572void MatrixView::modifyValues() {
1573#ifndef SDK

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected