eric6/Preferences/ShortcutsDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8218
7c09585bd960
child 8731
c6264a513aa4
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
42 Constructor 42 Constructor
43 43
44 @param parent parent widget of this dialog 44 @param parent parent widget of this dialog
45 @type QWidget 45 @type QWidget
46 """ 46 """
47 super(ShortcutsDialog, self).__init__(parent) 47 super().__init__(parent)
48 self.setupUi(self) 48 self.setupUi(self)
49 self.setWindowFlags(Qt.WindowType.Window) 49 self.setWindowFlags(Qt.WindowType.Window)
50 50
51 self.__helpViewer = None 51 self.__helpViewer = None
52 52
472 itm = topItem.child(index) 472 itm = topItem.child(index)
473 if ( 473 if (
474 (self.actionButton.isChecked() and 474 (self.actionButton.isChecked() and
475 rx.search(itm.text(0)) is not None) or 475 rx.search(itm.text(0)) is not None) or
476 (self.shortcutButton.isChecked() and 476 (self.shortcutButton.isChecked() and
477 not txt.lower() in itm.text(1).lower() and 477 txt.lower() not in itm.text(1).lower() and
478 not txt.lower() in itm.text(2).lower()) 478 txt.lower() not in itm.text(2).lower())
479 ): 479 ):
480 itm.setHidden(True) 480 itm.setHidden(True)
481 childHiddenCount += 1 481 childHiddenCount += 1
482 else: 482 else:
483 itm.setHidden(False) 483 itm.setHidden(False)

eric ide

mercurial