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

Method duplicateInput

src/program/ui/InputEditorView.cpp:818–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void InputEditorView::duplicateInput()
819{
820 const QModelIndexList indexes = selectionModel()->selectedRows();
821
822 /* If no row was selected, return */
823 if (indexes.count() == 0)
824 return;
825
826 /* FIXME: Discontinuous selection is not handled */
827 inputEditorModel->insertRows(indexes[0].row(), indexes.count(), true);
828 inputEditorModel->shiftMarkers(indexes[0].row(), indexes.count());
829}
830
831void InputEditorView::insertInput()
832{

Callers

nothing calls this directly

Calls 2

insertRowsMethod · 0.80
shiftMarkersMethod · 0.80

Tested by

no test coverage detected