940 if text: |
940 if text: |
941 for pattern in self.rxPatterns: |
941 for pattern in self.rxPatterns: |
942 text = re.sub(pattern, "", text) |
942 text = re.sub(pattern, "", text) |
943 |
943 |
944 foundItems = self.testsListWidget.findItems( |
944 foundItems = self.testsListWidget.findItems( |
945 text, Qt.MatchFlags(Qt.MatchFlag.MatchExactly)) |
945 text, Qt.MatchFlag.MatchExactly) |
946 if len(foundItems) > 0: |
946 if len(foundItems) > 0: |
947 itm = foundItems[0] |
947 itm = foundItems[0] |
948 self.testsListWidget.setCurrentItem(itm) |
948 self.testsListWidget.setCurrentItem(itm) |
949 self.testsListWidget.scrollToItem(itm) |
949 self.testsListWidget.scrollToItem(itm) |
950 |
950 |