| 788 | } |
| 789 | |
| 790 | void InputEditorView::removeMarker() |
| 791 | { |
| 792 | const QModelIndexList indexes = selectionModel()->selectedRows(); |
| 793 | |
| 794 | /* If no row was selected, return */ |
| 795 | if (indexes.count() == 0) |
| 796 | return; |
| 797 | |
| 798 | for (const QModelIndex index : indexes) |
| 799 | if (inputEditorModel->hasMarker(index.row())) |
| 800 | emit removeMarkerSignal(index.row()); |
| 801 | |
| 802 | updateMenu(); |
| 803 | } |
| 804 | |
| 805 | void InputEditorView::editEvents() |
| 806 | { |