eric7/Preferences/ShortcutsDialog.py

branch
eric7
changeset 8708
b904e88e04a0
parent 8366
2a9f5153c438
child 8881
54e42bc2437a
equal deleted inserted replaced
8706:16b25e115ac0 8708:b904e88e04a0
473 topItem = self.shortcutsList.topLevelItem(topIndex) 473 topItem = self.shortcutsList.topLevelItem(topIndex)
474 childHiddenCount = 0 474 childHiddenCount = 0
475 for index in range(topItem.childCount()): 475 for index in range(topItem.childCount()):
476 itm = topItem.child(index) 476 itm = topItem.child(index)
477 if ( 477 if (
478 (self.actionButton.isChecked() and 478 txt and (
479 rx.search(itm.text(0)) is not None) or 479 (self.actionButton.isChecked() and
480 (self.shortcutButton.isChecked() and 480 rx.search(itm.text(0)) is None) or
481 txt.lower() not in itm.text(1).lower() and 481 (self.shortcutButton.isChecked() and
482 txt.lower() not in itm.text(2).lower()) 482 txt.lower() not in itm.text(1).lower() and
483 txt.lower() not in itm.text(2).lower())
484 )
483 ): 485 ):
484 itm.setHidden(True) 486 itm.setHidden(True)
485 childHiddenCount += 1 487 childHiddenCount += 1
486 else: 488 else:
487 itm.setHidden(False) 489 itm.setHidden(False)

eric ide

mercurial