MCPcopy Create free account
hub / github.com/clementgallet/libTAS / slotRemove

Method slotRemove

src/program/ui/InputEventWindow.cpp:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void InputEventWindow::slotRemove()
139{
140 int min_row = 1 << 30;
141 int max_row = 0;
142 const QModelIndexList indexes = inputEventView->selectionModel()->selectedRows();
143
144 for (const QModelIndex index : indexes) {
145 if (index.row() < min_row)
146 min_row = index.row();
147 if (index.row() > max_row)
148 max_row = index.row();
149 }
150
151 inputEventModel->remove(min_row, max_row);
152}
153
154void InputEventWindow::slotClear()
155{

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected