MCPcopy Create free account
hub / github.com/clementgallet/libTAS / removeRows

Method removeRows

src/program/ui/MarkerModel.cpp:208–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208bool MarkerModel::removeRows(int row, int count, const QModelIndex &parent)
209{
210 beginRemoveRows(parent, row, row+count-1);
211
212 auto it = movie->editor->markers.cbegin();
213 if (count == 1) {
214 std::advance(it, row);
215 movie->editor->markers.erase(it);
216 }
217 else {
218 movie->editor->markers.erase(std::next(it, row), std::next(it, row+count-1));
219 }
220 endRemoveRows();
221 return true;
222}

Callers 4

deleteInputMethod · 0.45
truncateInputsMethod · 0.45
cutInputsMethod · 0.45
removeSlotMethod · 0.45

Calls 1

cbeginMethod · 0.45

Tested by

no test coverage detected