Preferences/ShortcutsDialog.py

changeset 4830
f609a22f43bd
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
4829:35fe0232fb8f 4830:f609a22f43bd
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

eric ide

mercurial