MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / contextDelete

Method contextDelete

pcsx2-qt/Debugger/Breakpoints/BreakpointView.cpp:104–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void 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
121void BreakpointView::contextNew()
122{

Callers

nothing calls this directly

Calls 3

rbeginMethod · 0.45
rendMethod · 0.45
removeRowsMethod · 0.45

Tested by

no test coverage detected