295 """ |
295 """ |
296 Public method to remove entries from the model. |
296 Public method to remove entries from the model. |
297 |
297 |
298 @param row row of the first entry to remove (integer) |
298 @param row row of the first entry to remove (integer) |
299 @param count number of entries to remove (integer) |
299 @param count number of entries to remove (integer) |
300 @param index of the parent entry (QModelIndex) |
300 @param parent index of the parent entry (QModelIndex) |
301 @return flag indicating successful removal (boolean) |
301 @return flag indicating successful removal (boolean) |
302 """ |
302 """ |
303 if row < 0 or \ |
303 if row < 0 or \ |
304 count <= 0 or \ |
304 count <= 0 or \ |
305 row + count > self.rowCount(parent): |
305 row + count > self.rowCount(parent): |