Пример #1
0
bool KVModel::removeRows(int position, int rows, const QModelIndex &parent)
{
	KeyValues *parentItem = getItem(parent);
	bool success = true;

	beginRemoveRows(parent, position, position + rows - 1);
	success = parentItem->RemoveChildren(position, rows);
	endRemoveRows();

	return success;
}