| 816 | } |
| 817 | |
| 818 | void 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 | |
| 831 | void InputEditorView::insertInput() |
| 832 | { |
nothing calls this directly
no test coverage detected