MCPcopy Create free account
hub / github.com/MrKepzie/Natron / takeItem

Method takeItem

Gui/TableModelView.cpp:476–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476TableItem *
477TableModel::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
494QModelIndex
495TableModel::index(const TableItem *item) const

Callers 2

removeTasksFromTableMethod · 0.80
dropEventMethod · 0.80

Calls 1

indexFunction · 0.50

Tested by

no test coverage detected