MCPcopy Create free account
hub / github.com/cc20110101/RedisView / removeRows

Method removeRows

src/RedisView/Model/KeyTreeModel.cpp:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221bool KeyTreeModel::removeRows(int position, int rows, const QModelIndex &parent)
222{
223 if(rows <= 0)
224 return false;
225
226 KeyTreeItem *parentItem = getItem(parent);
227 bool success = true;
228
229 beginRemoveRows(parent, position, position + rows - 1);
230 success = parentItem->removeChildren(position, rows);
231 endRemoveRows();
232
233 return success;
234}
235
236int KeyTreeModel::rowCount(const QModelIndex &parent) const
237{

Callers

nothing calls this directly

Calls 1

removeChildrenMethod · 0.45

Tested by

no test coverage detected