65 self.descriptionEdit.setText(description) |
65 self.descriptionEdit.setText(description) |
66 self.deviceTypeComboBox.setCurrentText("") |
66 self.deviceTypeComboBox.setCurrentText("") |
67 self.dataVolumeEdit.setText("") |
67 self.dataVolumeEdit.setText("") |
68 self.flashVolumeEdit.setText("") |
68 self.flashVolumeEdit.setText("") |
69 |
69 |
70 self.deviceTypeComboBox.setFocus(Qt.OtherFocusReason) |
70 self.deviceTypeComboBox.setFocus(Qt.FocusReason.OtherFocusReason) |
71 |
71 |
72 msh = self.minimumSizeHint() |
72 msh = self.minimumSizeHint() |
73 self.resize(max(self.width(), msh.width()), msh.height()) |
73 self.resize(max(self.width(), msh.width()), msh.height()) |
74 |
74 |
75 @pyqtSlot(int) |
75 @pyqtSlot(int) |
79 |
79 |
80 @param index index of the current item |
80 @param index index of the current item |
81 @type int |
81 @type int |
82 """ |
82 """ |
83 board = self.deviceTypeComboBox.currentData() |
83 board = self.deviceTypeComboBox.currentData() |
84 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool(board)) |
84 self.buttonBox.button( |
|
85 QDialogButtonBox.StandardButton.Ok).setEnabled(bool(board)) |
85 self.reportButton.setEnabled(bool(board)) |
86 self.reportButton.setEnabled(bool(board)) |
86 |
87 |
87 @pyqtSlot() |
88 @pyqtSlot() |
88 def on_reportButton_clicked(self): |
89 def on_reportButton_clicked(self): |
89 """ |
90 """ |