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

Method insertTableRow

Gui/TrackerPanel.cpp:760–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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