34 self.setModal(modal) |
34 self.setModal(modal) |
35 |
35 |
36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
37 |
37 |
38 # connect our widgets |
38 # connect our widgets |
39 self.connect(self.conditionEdit, SIGNAL("textChanged(const QString &)"), |
39 self.conditionEdit.textChanged.connect(self.__textChanged) |
40 self.__textChanged) |
40 self.specialEdit.textChanged.connect(self.__textChanged) |
41 self.connect(self.specialEdit, SIGNAL("textChanged(const QString &)"), |
|
42 self.__textChanged) |
|
43 |
41 |
44 cond, temp, enabled, count, special = properties |
42 cond, temp, enabled, count, special = properties |
45 |
43 |
46 # set the condition |
44 # set the condition |
47 if not special: |
45 if not special: |