| 102 | } |
| 103 | |
| 104 | void BreakpointView::contextDelete() |
| 105 | { |
| 106 | const QItemSelectionModel* selModel = m_ui.breakpointList->selectionModel(); |
| 107 | |
| 108 | if (!selModel->hasSelection()) |
| 109 | return; |
| 110 | |
| 111 | QModelIndexList indices = selModel->selectedIndexes(); |
| 112 | |
| 113 | std::set<int> rows; |
| 114 | for (QModelIndex index : indices) |
| 115 | rows.emplace(index.row()); |
| 116 | |
| 117 | for (auto row = rows.rbegin(); row != rows.rend(); row++) |
| 118 | m_model->removeRows(*row, 1); |
| 119 | } |
| 120 | |
| 121 | void BreakpointView::contextNew() |
| 122 | { |
nothing calls this directly
no test coverage detected