| 213 | } |
| 214 | |
| 215 | void ModelsManager::itemChanged(QStandardItem* i) |
| 216 | { |
| 217 | auto* model = static_cast<QStandardItemModel*>(sender()); |
| 218 | |
| 219 | int row = i->row(); |
| 220 | |
| 221 | Register r; |
| 222 | r.name = model->item(row, 0)->text(); |
| 223 | for (int i = 1; i < model->columnCount(); i++) { |
| 224 | r.value += model->item(row, i)->text() + QLatin1Char(' '); |
| 225 | } |
| 226 | r.value = r.value.trimmed(); |
| 227 | emit registerChanged(r); |
| 228 | } |
| 229 | |
| 230 | QString Models::nameForView(QAbstractItemView* view) const |
| 231 | { |
nothing calls this directly
no test coverage detected