TimeTracker/TimeTrackerWidget.py

branch
eric7
changeset 118
d3f658f306d4
parent 115
859d59103f9f
child 120
9ccde4517fca
equal deleted inserted replaced
117:12bb982c3960 118:d3f658f306d4
180 ] 180 ]
181 comments = [ 181 comments = [
182 self.commentCombo.itemText(index) 182 self.commentCombo.itemText(index)
183 for index in range(self.commentCombo.count()) 183 for index in range(self.commentCombo.count())
184 ] 184 ]
185 dlg = TimeTrackerEntryDialog(self.__tracker, None, tasks, comments) 185 dlg = TimeTrackerEntryDialog(self.__tracker, None, tasks, comments, parent=self)
186 if dlg.exec() == QDialog.DialogCode.Accepted: 186 if dlg.exec() == QDialog.DialogCode.Accepted:
187 self.__tracker.addTrackerEntry(*dlg.getData()) 187 self.__tracker.addTrackerEntry(*dlg.getData())
188 188
189 def __editEntry(self): 189 def __editEntry(self):
190 """ 190 """
204 ] 204 ]
205 comments = [ 205 comments = [
206 self.commentCombo.itemText(index) 206 self.commentCombo.itemText(index)
207 for index in range(self.commentCombo.count()) 207 for index in range(self.commentCombo.count())
208 ] 208 ]
209 dlg = TimeTrackerEntryDialog(self.__tracker, entry, tasks, comments) 209 dlg = TimeTrackerEntryDialog(
210 self.__tracker, entry, tasks, comments, parent=self
211 )
210 if dlg.exec() == QDialog.DialogCode.Accepted: 212 if dlg.exec() == QDialog.DialogCode.Accepted:
211 start, duration, task, comment = dlg.getData() 213 start, duration, task, comment = dlg.getData()
212 214
213 entry.setStartDateTime(start) 215 entry.setStartDateTime(start)
214 entry.setDuration(duration) 216 entry.setDuration(duration)

eric ide

mercurial