20 def __init__(self, recursive, parent=None): |
20 def __init__(self, recursive, parent=None): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param recursive flag indicating a recursive set is requested |
24 @param recursive flag indicating a recursive set is requested |
25 @param parent parent widget (QWidget) |
25 @type bool |
|
26 @param parent parent widget |
|
27 @type QWidget |
26 """ |
28 """ |
27 super().__init__(parent) |
29 super().__init__(parent) |
28 self.setupUi(self) |
30 self.setupUi(self) |
29 |
31 |
30 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
32 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
37 |
39 |
38 def on_propNameEdit_textChanged(self, text): |
40 def on_propNameEdit_textChanged(self, text): |
39 """ |
41 """ |
40 Private method used to enable/disable the OK-button. |
42 Private method used to enable/disable the OK-button. |
41 |
43 |
42 @param text ignored |
44 @param text text of the property name edit |
|
45 @type str |
43 """ |
46 """ |
44 self.okButton.setDisabled(text == "") |
47 self.okButton.setDisabled(text == "") |
45 |
48 |
46 def getData(self): |
49 def getData(self): |
47 """ |
50 """ |
48 Public slot used to retrieve the data entered into the dialog. |
51 Public slot used to retrieve the data entered into the dialog. |
49 |
52 |
50 @return tuple of two values giving the property name and a flag |
53 @return tuple of two values giving the property name and a flag |
51 indicating, that this property should be applied recursively. |
54 indicating, that this property should be applied recursively. |
52 (string, boolean) |
55 @rtype tuple of (str, bool) |
53 """ |
56 """ |
54 return (self.propNameEdit.text(), self.recurseCheckBox.isChecked()) |
57 return (self.propNameEdit.text(), self.recurseCheckBox.isChecked()) |