73 |
73 |
74 msh = self.minimumSizeHint() |
74 msh = self.minimumSizeHint() |
75 self.resize(max(self.width(), msh.width()), msh.height()) |
75 self.resize(max(self.width(), msh.width()), msh.height()) |
76 |
76 |
77 @pyqtSlot(str) |
77 @pyqtSlot(str) |
78 def __textChanged(self, txt): |
78 def __textChanged(self, _txt): |
79 """ |
79 """ |
80 Private slot to handle the text changed signal of the condition line |
80 Private slot to handle the text changed signal of the condition line |
81 edit. |
81 edit. |
82 |
82 |
83 @param txt text of the line edit |
83 @param _txt text of the line edit (unused) |
84 @type str |
84 @type str |
85 """ |
85 """ |
86 if self.conditionButton.isChecked(): |
86 if self.conditionButton.isChecked(): |
87 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
87 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
88 self.conditionEdit.text() != "" |
88 self.conditionEdit.text() != "" |