97 @pyqtSlot() |
97 @pyqtSlot() |
98 def on_defaultButton_clicked(self): |
98 def on_defaultButton_clicked(self): |
99 """ |
99 """ |
100 Private slot to set the dialog contents to default values. |
100 Private slot to set the dialog contents to default values. |
101 """ |
101 """ |
102 filled = bool(self.descriptionEdit.text().strip()) or \ |
102 filled = ( |
|
103 bool(self.descriptionEdit.text().strip()) or |
103 bool(self.wordsEdit.toPlainText().strip()) |
104 bool(self.wordsEdit.toPlainText().strip()) |
|
105 ) |
104 if filled: |
106 if filled: |
105 ok = E5MessageBox.yesNo( |
107 ok = E5MessageBox.yesNo( |
106 self, |
108 self, |
107 self.tr("Set Sub-Style Data to Default"), |
109 self.tr("Set Sub-Style Data to Default"), |
108 self.tr("""Shall the sub-style data be set to default""" |
110 self.tr("""Shall the sub-style data be set to default""" |