mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Disable auto repeat on all interface actions be default
This commit is contained in:
parent
0214d576d4
commit
7eac6b2697
@ -17,6 +17,7 @@ class InterfaceAction(QObject):
|
||||
priority = 1
|
||||
positions = frozenset([])
|
||||
popup_type = QToolButton.MenuButtonPopup
|
||||
auto_repeat = False
|
||||
|
||||
#: Of the form: (text, icon_path, tooltip, keyboard shortcut)
|
||||
#: icon, tooltip and keybard shortcut can be None
|
||||
@ -43,6 +44,7 @@ class InterfaceAction(QObject):
|
||||
action = QAction(QIcon(I(icon)), text, self.gui)
|
||||
else:
|
||||
action = QAction(text, self.gui)
|
||||
action.setAutoRepeat(self.auto_repeat)
|
||||
text = tooltip if tooltip else text
|
||||
action.setToolTip(text)
|
||||
action.setStatusTip(text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user