190 row = index.row() |
190 row = index.row() |
191 index1 = self.createIndex(row, 0, self.breakpoints[row]) |
191 index1 = self.createIndex(row, 0, self.breakpoints[row]) |
192 index2 = self.createIndex(row, len(self.breakpoints[row]), |
192 index2 = self.createIndex(row, len(self.breakpoints[row]), |
193 self.breakpoints[row]) |
193 self.breakpoints[row]) |
194 self.dataAboutToBeChanged.emit(index1, index2) |
194 self.dataAboutToBeChanged.emit(index1, index2) |
195 i = 0 |
195 self.breakpoints[row] = [fn, line] + list(properties) |
196 for value in [fn, line] + list(properties): |
|
197 self.breakpoints[row][i] = value |
|
198 i += 1 |
|
199 self.dataChanged.emit(index1, index2) |
196 self.dataChanged.emit(index1, index2) |
200 |
197 |
201 def setBreakPointEnabledByIndex(self, index, enabled): |
198 def setBreakPointEnabledByIndex(self, index, enabled): |
202 """ |
199 """ |
203 Public method to set the enabled state of a breakpoint given by index. |
200 Public method to set the enabled state of a breakpoint given by index. |