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) |