From 7eac6b269721c889bb4d178269c340ff26ab2955 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 13 Aug 2010 21:25:49 -0600 Subject: [PATCH] Disable auto repeat on all interface actions be default --- src/calibre/gui2/actions/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/actions/__init__.py b/src/calibre/gui2/actions/__init__.py index 7dfdd31f37..236bb32233 100644 --- a/src/calibre/gui2/actions/__init__.py +++ b/src/calibre/gui2/actions/__init__.py @@ -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)