Exemplo n.º 1
0
 def filterAcceptsRow(self, row, parent):
     widget = self.parent()
     antecedent = self.sourceModel().index(row, 6, parent)
     consequent = self.sourceModel().index(row, 8, parent)
     return bool(widget.isSizeMatch(antecedent.data(OWAssociate.ITEM_DATA_ROLE),
                                    consequent.data(OWAssociate.ITEM_DATA_ROLE)) and
                 widget.isRegexMatch(antecedent.data(),
                                     consequent.data()))
Exemplo n.º 2
0
 def filterAcceptsRow(self, row, parent):
     widget = self.parent()
     antecedent = self.sourceModel().index(row, 6, parent)
     consequent = self.sourceModel().index(row, 8, parent)
     return bool(
         widget.isSizeMatch(antecedent.data(OWAssociate.ITEM_DATA_ROLE),
                            consequent.data(OWAssociate.ITEM_DATA_ROLE))
         and widget.isRegexMatch(antecedent.data(), consequent.data()))