| 841 | } |
| 842 | |
| 843 | void InputEditorView::insertInputs() |
| 844 | { |
| 845 | const QModelIndexList indexes = selectionModel()->selectedRows(); |
| 846 | |
| 847 | /* If no row was selected, return */ |
| 848 | if (indexes.count() == 0) |
| 849 | return; |
| 850 | |
| 851 | bool ok; |
| 852 | int nbFrames = QInputDialog::getInt(this, tr("Insert frames"), tr("Number of frames to insert: "), 1, 0, 100000, 1, &ok); |
| 853 | |
| 854 | if (ok) { |
| 855 | int insertRow = indexes[0].row(); |
| 856 | inputEditorModel->insertRows(insertRow, nbFrames, false); |
| 857 | inputEditorModel->shiftMarkers(insertRow, nbFrames); |
| 858 | } |
| 859 | } |
| 860 | |
| 861 | int InputEditorView::applyToSelectedRanges(std::function<void(int, int)> func) |
| 862 | { |
nothing calls this directly
no test coverage detected