8217:385f60c94548 | 8218:7c09585bd960 |
---|---|
48 Constructor | 48 Constructor |
49 | 49 |
50 @param vcs reference to the vcs object | 50 @param vcs reference to the vcs object |
51 @param parent parent widget (QWidget) | 51 @param parent parent widget (QWidget) |
52 """ | 52 """ |
53 super(GitStatusDialog, self).__init__(parent) | 53 super().__init__(parent) |
54 self.setupUi(self) | 54 self.setupUi(self) |
55 | 55 |
56 self.__toBeCommittedColumn = 0 | 56 self.__toBeCommittedColumn = 0 |
57 self.__statusWorkColumn = 1 | 57 self.__statusWorkColumn = 1 |
58 self.__statusIndexColumn = 2 | 58 self.__statusIndexColumn = 2 |
286 | 286 |
287 def show(self): | 287 def show(self): |
288 """ | 288 """ |
289 Public slot to show the dialog. | 289 Public slot to show the dialog. |
290 """ | 290 """ |
291 super(GitStatusDialog, self).show() | 291 super().show() |
292 | 292 |
293 geom = self.vcs.getPlugin().getPreferences( | 293 geom = self.vcs.getPlugin().getPreferences( |
294 "StatusDialogGeometry") | 294 "StatusDialogGeometry") |
295 if geom.isEmpty(): | 295 if geom.isEmpty(): |
296 s = QSize(900, 600) | 296 s = QSize(900, 600) |
572 """ | 572 """ |
573 if self.intercept: | 573 if self.intercept: |
574 self.intercept = False | 574 self.intercept = False |
575 evt.accept() | 575 evt.accept() |
576 return | 576 return |
577 super(GitStatusDialog, self).keyPressEvent(evt) | 577 super().keyPressEvent(evt) |
578 | 578 |
579 @pyqtSlot() | 579 @pyqtSlot() |
580 def on_refreshButton_clicked(self): | 580 def on_refreshButton_clicked(self): |
581 """ | 581 """ |
582 Private slot to refresh the status display. | 582 Private slot to refresh the status display. |