mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:53:51 +02:00
Disable auto repeat on all interface actions be default
This commit is contained in:
parent
0214d576d4
commit
7eac6b2697
1 changed files with 2 additions and 0 deletions
|
|
@ -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 @@ def create_action(self, spec=None, attr='qaction'):
|
|||
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…
Reference in a new issue