109 """ |
109 """ |
110 Public method to remove bookmarks from the model. |
110 Public method to remove bookmarks from the model. |
111 |
111 |
112 @param row row of the first bookmark to remove (integer) |
112 @param row row of the first bookmark to remove (integer) |
113 @param count number of bookmarks to remove (integer) |
113 @param count number of bookmarks to remove (integer) |
114 @param index of the parent bookmark node (QModelIndex) |
114 @param parent index of the parent bookmark node (QModelIndex) |
115 @return flag indicating successful removal (boolean) |
115 @return flag indicating successful removal (boolean) |
116 """ |
116 """ |
117 if row < 0 or count <= 0 or row + count > self.rowCount(parent): |
117 if row < 0 or count <= 0 or row + count > self.rowCount(parent): |
118 return False |
118 return False |
119 |
119 |