src/eric7/Debugger/BreakPointModel.py

branch
eric7
changeset 10065
de4ae767b0e3
parent 9653
e67609152c5e
child 10417
c6011e501282
equal deleted inserted replaced
10064:8c3207703dac 10065:de4ae767b0e3
67 67
68 self.__project = project 68 self.__project = project
69 69
70 self.breakpoints = [] 70 self.breakpoints = []
71 71
72 def columnCount(self, parent=None): 72 def columnCount(self, parent=None): # noqa: U100
73 """ 73 """
74 Public method to get the current column count. 74 Public method to get the current column count.
75 75
76 @param parent reference to parent index (Unused) 76 @param parent reference to parent index (Unused)
77 @type QModelIndex 77 @type QModelIndex
143 ): 143 ):
144 return BreakPointModel.Alignments[index.column()].value 144 return BreakPointModel.Alignments[index.column()].value
145 145
146 return None 146 return None
147 147
148 def setData(self, index, value, role=Qt.ItemDataRole.EditRole): 148 def setData(self, index, value, role=Qt.ItemDataRole.EditRole): # noqa: U100
149 """ 149 """
150 Public method to change data in the model. 150 Public method to change data in the model.
151 151
152 @param index index of the changed data 152 @param index index of the changed data
153 @type QModelIndex 153 @type QModelIndex
230 ): 230 ):
231 return QModelIndex() 231 return QModelIndex()
232 232
233 return self.createIndex(row, column, self.breakpoints[row]) 233 return self.createIndex(row, column, self.breakpoints[row])
234 234
235 def parent(self, index): 235 def parent(self, index): # noqa: U100
236 """ 236 """
237 Public method to get the parent index. 237 Public method to get the parent index.
238 238
239 @param index index of item to get parent 239 @param index index of item to get parent
240 @type QModelIndex 240 @type QModelIndex

eric ide

mercurial