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

Method removeItem

src/RedisView/Model/ValueTableModel.cpp:151–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool ValueTableModel::removeItem(ValueTableItem *item)
152{
153 if(!item)
154 return false;
155 beginRemoveRows(QModelIndex(), rootItem->childNumber(item), rootItem->childNumber(item));
156 bool success = rootItem->removeItem(item);
157 endRemoveRows();
158 return success;
159}
160
161int ValueTableModel::childNumber(ValueTableItem * item) const
162{

Callers

nothing calls this directly

Calls 1

childNumberMethod · 0.45

Tested by

no test coverage detected