MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / removeNodeFromSelection

Method removeNodeFromSelection

Gui/MultiInstancePanel.cpp:839–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839void
840MultiInstancePanel::removeNodeFromSelection(const NodePtr & node)
841{
842 int index = -1;
843 int i = 0;
844
845 for (std::list<std::pair<NodeWPtr, bool > >::iterator it = _imp->instances.begin(); it != _imp->instances.end(); ++it, ++i) {
846 if (it->first.lock() == node) {
847 index = i;
848 break;
849 }
850 }
851 assert(index != -1);
852 QItemSelection newSelection( _imp->model->index(index, 0), _imp->model->index(index, _imp->view->columnCount() - 1) );
853 _imp->view->selectionModel()->select(newSelection, QItemSelectionModel::Deselect);
854}
855
856void
857MultiInstancePanel::clearSelection()

Callers

nothing calls this directly

Calls 6

beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
indexMethod · 0.45
columnCountMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected