Preferences/ShortcutsDialog.py

changeset 1521
1e684e74d2a1
parent 1509
c0b5e693b0eb
child 2223
054c285dab38
child 2303
0ed4ed026c16
equal deleted inserted replaced
1520:25d97c7ea897 1521:1e684e74d2a1
355 itm = category.child(index) 355 itm = category.child(index)
356 txt = itm.data(0, self.objectNameRole) 356 txt = itm.data(0, self.objectNameRole)
357 for act in actions: 357 for act in actions:
358 if txt == act.objectName(): 358 if txt == act.objectName():
359 act.setShortcut(QKeySequence(itm.text(1))) 359 act.setShortcut(QKeySequence(itm.text(1)))
360 act.setAlternateShortcut(QKeySequence(itm.text(2))) 360 act.setAlternateShortcut(QKeySequence(itm.text(2)), removeEmpty=True)
361 break 361 break
362 362
363 def on_buttonBox_accepted(self): 363 def on_buttonBox_accepted(self):
364 """ 364 """
365 Private slot to handle the OK button press. 365 Private slot to handle the OK button press.

eric ide

mercurial