330 act.setShortcut(QKeySequence(accel)) |
330 act.setShortcut(QKeySequence(accel)) |
331 accel = Preferences.Prefs.settings.value( |
331 accel = Preferences.Prefs.settings.value( |
332 "Shortcuts/{0}/{1}/AltAccel".format( |
332 "Shortcuts/{0}/{1}/AltAccel".format( |
333 category, act.objectName())) |
333 category, act.objectName())) |
334 if accel is not None: |
334 if accel is not None: |
335 act.setAlternateShortcut(QKeySequence(accel)) |
335 act.setAlternateShortcut(QKeySequence(accel), removeEmpty=True) |
336 |
336 |
337 def __createActions(self): |
337 def __createActions(self): |
338 """ |
338 """ |
339 Private method to create the actions. |
339 Private method to create the actions. |
340 """ |
340 """ |