28 |
28 |
29 def __init__(self, mode, parent=None): |
29 def __init__(self, mode, parent=None): |
30 """ |
30 """ |
31 Constructor |
31 Constructor |
32 |
32 |
|
33 @param mode mode of the dialog |
|
34 @type int |
33 @param parent reference to the parent widget |
35 @param parent reference to the parent widget |
34 @type QWidget |
36 @type QWidget |
35 """ |
37 """ |
36 super(ImageMarkupDialog, self).__init__(parent) |
38 super(ImageMarkupDialog, self).__init__(parent) |
37 self.setupUi(self) |
39 self.setupUi(self) |
163 self.heightSpinBox.setValue(self.__originalImageSize.height()) |
165 self.heightSpinBox.setValue(self.__originalImageSize.height()) |
164 |
166 |
165 @pyqtSlot(bool) |
167 @pyqtSlot(bool) |
166 def on_aspectRatioCheckBox_toggled(self, checked): |
168 def on_aspectRatioCheckBox_toggled(self, checked): |
167 """ |
169 """ |
168 Public slot to adjust the height to match the original aspect ratio. |
170 Private slot to adjust the height to match the original aspect ratio. |
169 |
171 |
170 @param checked flag indicating the state of the check box |
172 @param checked flag indicating the state of the check box |
171 @type bool |
173 @type bool |
172 """ |
174 """ |
173 if checked and self.__originalImageSize.isValid(): |
175 if checked and self.__originalImageSize.isValid(): |