32 if accel is not None: |
32 if accel is not None: |
33 act.setShortcut(QKeySequence(accel)) |
33 act.setShortcut(QKeySequence(accel)) |
34 accel = prefClass.settings.value( |
34 accel = prefClass.settings.value( |
35 "Shortcuts/{0}/{1}/AltAccel".format(category, act.objectName())) |
35 "Shortcuts/{0}/{1}/AltAccel".format(category, act.objectName())) |
36 if accel is not None: |
36 if accel is not None: |
37 act.setAlternateShortcut(QKeySequence(accel)) |
37 act.setAlternateShortcut(QKeySequence(accel), removeEmpty=True) |
38 |
38 |
39 |
39 |
40 def readShortcuts(prefClass=Prefs, helpViewer=None, pluginName=None): |
40 def readShortcuts(prefClass=Prefs, helpViewer=None, pluginName=None): |
41 """ |
41 """ |
42 Module function to read the keyboard shortcuts for the defined QActions. |
42 Module function to read the keyboard shortcuts for the defined QActions. |