105 """ |
105 """ |
106 enable = bool(self.imagePicker.text()) |
106 enable = bool(self.imagePicker.text()) |
107 if self.__mode == ImageMarkupDialog.MarkDownMode: |
107 if self.__mode == ImageMarkupDialog.MarkDownMode: |
108 enable = enable and bool(self.altTextEdit.text()) |
108 enable = enable and bool(self.altTextEdit.text()) |
109 |
109 |
110 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
110 self.buttonBox.button( |
|
111 QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
111 |
112 |
112 @pyqtSlot(str) |
113 @pyqtSlot(str) |
113 def on_imagePicker_textChanged(self, address): |
114 def on_imagePicker_textChanged(self, address): |
114 """ |
115 """ |
115 Private slot handling changes of the image path. |
116 Private slot handling changes of the image path. |