57 self.rx_changelist = re.compile("--- \\S+ .([\\w\\s]+).:\\s+") |
57 self.rx_changelist = re.compile("--- \\S+ .([\\w\\s]+).:\\s+") |
58 # three dashes, Changelist (translated), quote, |
58 # three dashes, Changelist (translated), quote, |
59 # changelist name, quote, : |
59 # changelist name, quote, : |
60 |
60 |
61 @pyqtSlot(QListWidgetItem, QListWidgetItem) |
61 @pyqtSlot(QListWidgetItem, QListWidgetItem) |
62 def on_changeLists_currentItemChanged(self, current, previous): |
62 def on_changeLists_currentItemChanged(self, current, _previous): |
63 """ |
63 """ |
64 Private slot to handle the selection of a new item. |
64 Private slot to handle the selection of a new item. |
65 |
65 |
66 @param current current item |
66 @param current current item |
67 @type QListWidgetItem |
67 @type QListWidgetItem |
68 @param previous previous current item |
68 @param _previous previous current item (unused) |
69 @type QListWidgetItem |
69 @type QListWidgetItem |
70 """ |
70 """ |
71 self.filesList.clear() |
71 self.filesList.clear() |
72 if current is not None: |
72 if current is not None: |
73 changelist = current.text() |
73 changelist = current.text() |
167 self.close() |
167 self.close() |
168 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
168 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
169 self.__finish() |
169 self.__finish() |
170 |
170 |
171 @pyqtSlot(int, QProcess.ExitStatus) |
171 @pyqtSlot(int, QProcess.ExitStatus) |
172 def __procFinished(self, exitCode, exitStatus): |
172 def __procFinished(self, _exitCode, _exitStatus): |
173 """ |
173 """ |
174 Private slot connected to the finished signal. |
174 Private slot connected to the finished signal. |
175 |
175 |
176 @param exitCode exit code of the process |
176 @param _exitCode exit code of the process (unused) |
177 @type int |
177 @type int |
178 @param exitStatus exit status of the process |
178 @param _exitStatus exit status of the process (unused) |
179 @type QProcess.ExitStatus |
179 @type QProcess.ExitStatus |
180 """ |
180 """ |
181 self.__finish() |
181 self.__finish() |
182 |
182 |
183 def __readStdout(self): |
183 def __readStdout(self): |