461 topItem = self.shortcutsList.topLevelItem(topIndex) |
461 topItem = self.shortcutsList.topLevelItem(topIndex) |
462 childHiddenCount = 0 |
462 childHiddenCount = 0 |
463 for index in range(topItem.childCount()): |
463 for index in range(topItem.childCount()): |
464 itm = topItem.child(index) |
464 itm = topItem.child(index) |
465 if (self.actionButton.isChecked() and |
465 if (self.actionButton.isChecked() and |
466 not QRegExp(txt, Qt.CaseInsensitive).indexIn(itm.text(0)) > |
466 not QRegExp(txt, Qt.CaseInsensitive).indexIn( |
467 -1) or \ |
467 itm.text(0)) > -1) or \ |
468 (self.shortcutButton.isChecked() and |
468 (self.shortcutButton.isChecked() and |
469 not txt.lower() in itm.text(1).lower() and |
469 not txt.lower() in itm.text(1).lower() and |
470 not txt.lower() in itm.text(2).lower()): |
470 not txt.lower() in itm.text(2).lower()): |
471 itm.setHidden(True) |
471 itm.setHidden(True) |
472 childHiddenCount += 1 |
472 childHiddenCount += 1 |