313 """ |
313 """ |
314 Public method to remove entries from the model. |
314 Public method to remove entries from the model. |
315 |
315 |
316 @param row row of the first entry to remove (integer) |
316 @param row row of the first entry to remove (integer) |
317 @param count number of entries to remove (integer) |
317 @param count number of entries to remove (integer) |
318 @param index of the parent entry (QModelIndex) |
318 @param parent index of the parent entry (QModelIndex) |
319 @return flag indicating successful removal (boolean) |
319 @return flag indicating successful removal (boolean) |
320 """ |
320 """ |
321 if row < 0 or \ |
321 if row < 0 or \ |
322 count <= 0 or \ |
322 count <= 0 or \ |
323 row + count > self.rowCount(parent) or \ |
323 row + count > self.rowCount(parent) or \ |