| 474 | } |
| 475 | |
| 476 | TableItem * |
| 477 | TableModel::takeItem(int row, |
| 478 | int column) |
| 479 | { |
| 480 | long i = tableIndex(row, column); |
| 481 | TableItem *itm = _imp->tableItems[i]; |
| 482 | |
| 483 | if (itm) { |
| 484 | itm->view = 0; |
| 485 | itm->id = -1; |
| 486 | _imp->tableItems[i] = 0; |
| 487 | QModelIndex ind = index(itm); |
| 488 | Q_EMIT dataChanged(ind, ind); |
| 489 | } |
| 490 | |
| 491 | return itm; |
| 492 | } |
| 493 | |
| 494 | QModelIndex |
| 495 | TableModel::index(const TableItem *item) const |
no test coverage detected