| 106 | } |
| 107 | |
| 108 | void AddItemTableRow(QTableWidget *table, const QStringList &cellLabels) |
| 109 | { |
| 110 | int row = table->rowCount(); |
| 111 | table->setRowCount(row + 1); |
| 112 | |
| 113 | int col = 0; |
| 114 | for (const auto &cellLabel : cellLabels) { |
| 115 | auto *item = new QTableWidgetItem(cellLabel); |
| 116 | item->setToolTip(cellLabel); |
| 117 | table->setItem(row, col, item); |
| 118 | col++; |
| 119 | } |
| 120 | |
| 121 | table->sortByColumn(0, Qt::AscendingOrder); |
| 122 | } |
| 123 | |
| 124 | void UpdateItemTableRow(QTableWidget *table, int row, |
| 125 | const QStringList &cellLabels) |
no test coverage detected