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