53 def __enableOkButton(self): |
53 def __enableOkButton(self): |
54 """ |
54 """ |
55 Private method used to enable/disable the OK-button. |
55 Private method used to enable/disable the OK-button. |
56 """ |
56 """ |
57 self.okButton.setDisabled( |
57 self.okButton.setDisabled( |
58 self.tag1Combo.currentText() == "" or \ |
58 self.tag1Combo.currentText() == "" or |
59 self.tag2Combo.currentText() == "" or \ |
59 self.tag2Combo.currentText() == "" or |
60 not ((self.rx_url.exactMatch(self.tag1Combo.currentText()) and \ |
60 not ((self.rx_url.exactMatch(self.tag1Combo.currentText()) and |
61 self.rx_url.exactMatch(self.tag2Combo.currentText())) or \ |
61 self.rx_url.exactMatch(self.tag2Combo.currentText())) or |
62 (self.rx_rev.exactMatch(self.tag1Combo.currentText()) and \ |
62 (self.rx_rev.exactMatch(self.tag1Combo.currentText()) and |
63 self.rx_rev.exactMatch(self.tag2Combo.currentText())) |
63 self.rx_rev.exactMatch(self.tag2Combo.currentText())) |
64 ) |
64 ) |
65 ) |
65 ) |
66 |
66 |
67 def on_tag1Combo_editTextChanged(self, text): |
67 def on_tag1Combo_editTextChanged(self, text): |
68 """ |
68 """ |
69 Private slot to handle the tag1Combo editTextChanged signal. |
69 Private slot to handle the tag1Combo editTextChanged signal. |
70 |
70 |