35 self.patchFilePicker.setFilters(self.tr( |
35 self.patchFilePicker.setFilters(self.tr( |
36 "Patch Files (*.diff *.patch);;All Files (*)")) |
36 "Patch Files (*.diff *.patch);;All Files (*)")) |
37 |
37 |
38 self.secretCheckBox.setEnabled(vcs.version >= (5, 3, 0)) |
38 self.secretCheckBox.setEnabled(vcs.version >= (5, 3, 0)) |
39 |
39 |
40 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
40 self.buttonBox.button( |
|
41 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
41 |
42 |
42 self.__initDateTime = QDateTime.currentDateTime() |
43 self.__initDateTime = QDateTime.currentDateTime() |
43 self.dateEdit.setDateTime(self.__initDateTime) |
44 self.dateEdit.setDateTime(self.__initDateTime) |
44 |
45 |
45 def __updateOK(self): |
46 def __updateOK(self): |
48 """ |
49 """ |
49 enabled = True |
50 enabled = True |
50 if self.patchFilePicker.text() == "": |
51 if self.patchFilePicker.text() == "": |
51 enabled = False |
52 enabled = False |
52 |
53 |
53 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
54 self.buttonBox.button( |
|
55 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
54 |
56 |
55 @pyqtSlot(str) |
57 @pyqtSlot(str) |
56 def on_patchFilePicker_textChanged(self, txt): |
58 def on_patchFilePicker_textChanged(self, txt): |
57 """ |
59 """ |
58 Private slot to react on changes of the patch file edit. |
60 Private slot to react on changes of the patch file edit. |