23 def __init__(self, vcs, patchesList, parent=None): |
23 def __init__(self, vcs, patchesList, parent=None): |
24 """ |
24 """ |
25 Constructor |
25 Constructor |
26 |
26 |
27 @param vcs reference to the vcs object |
27 @param vcs reference to the vcs object |
28 @param patchesList list of patches (list of strings) |
28 @type Hg |
29 @param parent reference to the parent widget (QWidget) |
29 @param patchesList list of patches |
|
30 @type list of str |
|
31 @param parent reference to the parent widget |
|
32 @type QWidget |
30 """ |
33 """ |
31 super().__init__(parent) |
34 super().__init__(parent) |
32 self.setupUi(self) |
35 self.setupUi(self) |
33 self.setWindowFlags(Qt.WindowType.Window) |
36 self.setWindowFlags(Qt.WindowType.Window) |
34 |
37 |
42 |
45 |
43 def closeEvent(self, e): |
46 def closeEvent(self, e): |
44 """ |
47 """ |
45 Protected slot implementing a close event handler. |
48 Protected slot implementing a close event handler. |
46 |
49 |
47 @param e close event (QCloseEvent) |
50 @param e close event |
|
51 @type QCloseEvent |
48 """ |
52 """ |
49 if self.__hgClient.isExecuting(): |
53 if self.__hgClient.isExecuting(): |
50 self.__hgClient.cancel() |
54 self.__hgClient.cancel() |
51 |
55 |
52 e.accept() |
56 e.accept() |