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

Method removeRows

pcsx2-qt/Debugger/Memory/SavedAddressesModel.cpp:173–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173bool SavedAddressesModel::removeRows(int row, int count, const QModelIndex& parent)
174{
175 if (row < 0 || count < 1 || static_cast<size_t>(row + count) > m_savedAddresses.size())
176 return false;
177
178 beginRemoveRows(parent, row, row + count - 1);
179 m_savedAddresses.erase(m_savedAddresses.begin() + row, m_savedAddresses.begin() + row + count);
180 endRemoveRows();
181 return true;
182}
183
184int SavedAddressesModel::rowCount(const QModelIndex&) const
185{

Callers 2

reloadListMethod · 0.45
openContextMenuMethod · 0.45

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected