| 69 | constexpr int col_count = 4; // columns: count, min, max, avg |
| 70 | |
| 71 | void populateRow(QTableWidget* table, const int row_i, const std::array<QString, col_count>& data) |
| 72 | { |
| 73 | for (int col = 0; col < col_count; ++col) |
| 74 | { |
| 75 | QTableWidgetItem* item = new QTableWidgetItem(); |
| 76 | item->setText(data[col]); |
| 77 | table->setItem(row_i, col, item); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | /// insert an intermediate row with a single spanning cell, which describes where the values came from (e.g. from DataArrays, or MetaData) |
| 82 | void addHeaderRow(QTableWidget* table, int& row_i, const QString& row_name) |
no test coverage detected