| 219 | } |
| 220 | |
| 221 | bool 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 | |
| 236 | int KeyTreeModel::rowCount(const QModelIndex &parent) const |
| 237 | { |
nothing calls this directly
no test coverage detected