eric6/WebBrowser/PersonalInformationManager/PersonalInformationManager.py

changeset 8143
2c730d5fd177
parent 7937
181d1160f617
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
124 """ 124 """
125 Public method to show the configuration dialog. 125 Public method to show the configuration dialog.
126 """ 126 """
127 from .PersonalDataDialog import PersonalDataDialog 127 from .PersonalDataDialog import PersonalDataDialog
128 dlg = PersonalDataDialog() 128 dlg = PersonalDataDialog()
129 if dlg.exec() == QDialog.Accepted: 129 if dlg.exec() == QDialog.DialogCode.Accepted:
130 dlg.storeData() 130 dlg.storeData()
131 self.__loadSettings() 131 self.__loadSettings()
132 132
133 def createSubMenu(self, menu, view, hitTestResult): 133 def createSubMenu(self, menu, view, hitTestResult):
134 """ 134 """
196 @return flag indicating handling of the event (boolean) 196 @return flag indicating handling of the event (boolean)
197 """ 197 """
198 if view is None: 198 if view is None:
199 return False 199 return False
200 200
201 isEnter = evt.key() in [Qt.Key_Return, Qt.Key_Enter] 201 isEnter = evt.key() in [Qt.Key.Key_Return, Qt.Key.Key_Enter]
202 isControlModifier = evt.modifiers() & Qt.ControlModifier 202 isControlModifier = (
203 evt.modifiers() & Qt.KeyboardModifier.ControlModifier
204 )
203 if not isEnter or not isControlModifier: 205 if not isEnter or not isControlModifier:
204 return False 206 return False
205 207
206 if not self.__loaded: 208 if not self.__loaded:
207 self.__loadSettings() 209 self.__loadSettings()

eric ide

mercurial