Preferences/ShortcutsDialog.py

branch
5_1_x
changeset 1523
e38f749a6f28
parent 1510
e75ecf2bd9dd
equal deleted inserted replaced
1517:862a84b4f3e2 1523:e38f749a6f28
354 itm = category.child(index) 354 itm = category.child(index)
355 txt = itm.data(0, self.objectNameRole) 355 txt = itm.data(0, self.objectNameRole)
356 for act in actions: 356 for act in actions:
357 if txt == act.objectName(): 357 if txt == act.objectName():
358 act.setShortcut(QKeySequence(itm.text(1))) 358 act.setShortcut(QKeySequence(itm.text(1)))
359 act.setAlternateShortcut(QKeySequence(itm.text(2))) 359 act.setAlternateShortcut(QKeySequence(itm.text(2)), removeEmpty=True)
360 break 360 break
361 361
362 def on_buttonBox_accepted(self): 362 def on_buttonBox_accepted(self):
363 """ 363 """
364 Private slot to handle the OK button press. 364 Private slot to handle the OK button press.

eric ide

mercurial