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

Method insertTableRow

Gui/TrackerPanel.cpp:763–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763void
764TrackerPanel::insertTableRow(const TrackMarkerPtr & node,
765 int index)
766{
767 assert(index >= 0);
768
769 _imp->model->insertRow(index);
770
771 TrackDatas data;
772 data.marker = node;
773 _imp->makeTrackRowItems(*node, index, data);
774
775 if ( index >= (int)_imp->items.size() ) {
776 _imp->items.push_back(data);
777 } else {
778 TrackItems::iterator it = _imp->items.begin();
779 std::advance(it, index);
780 _imp->items.insert(it, data);
781 }
782}
783
784void
785TrackerPanel::blockSelection()

Callers

nothing calls this directly

Calls 6

insertRowMethod · 0.80
makeTrackRowItemsMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected