48 |
48 |
49 def __updateOkButton(self): |
49 def __updateOkButton(self): |
50 """ |
50 """ |
51 Private method to update the state of the OK button. |
51 Private method to update the state of the OK button. |
52 """ |
52 """ |
53 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
53 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
54 (bool(self.textEdit.text()) or self.__allowEmptyText) and |
54 (bool(self.textEdit.text()) or self.__allowEmptyText) and |
55 (bool(self.targetEdit.text()) or self.__allowEmptyTarget) |
55 (bool(self.targetEdit.text()) or self.__allowEmptyTarget) |
56 ) |
56 ) |
57 |
57 |
58 @pyqtSlot(str) |
58 @pyqtSlot(str) |