| 415 | } |
| 416 | |
| 417 | void TableView::_moveCellOutOfSight(TableViewCell* cell) |
| 418 | { |
| 419 | if (_tableViewDelegate != nullptr) |
| 420 | { |
| 421 | _tableViewDelegate->tableCellWillRecycle(this, cell); |
| 422 | } |
| 423 | |
| 424 | _cellsFreed.pushBack(cell); |
| 425 | _cellsUsed.eraseObject(cell); |
| 426 | _isUsedCellsDirty = true; |
| 427 | |
| 428 | _indices->erase(cell->getIdx()); |
| 429 | cell->reset(); |
| 430 | |
| 431 | if (cell->getParent() == this->getContainer()) |
| 432 | { |
| 433 | this->getContainer()->removeChild(cell, false); |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | void TableView::_setIndexForCell(ssize_t index, TableViewCell* cell) |
| 438 | { |
no test coverage detected