E5Gui/E5ToolBarManager.py

changeset 5108
f5cb9cb98e6a
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
diff -r 1ecc6c9abca5 -r f5cb9cb98e6a E5Gui/E5ToolBarManager.py
--- a/E5Gui/E5ToolBarManager.py	Tue Aug 23 19:02:43 2016 +0200
+++ b/E5Gui/E5ToolBarManager.py	Wed Aug 24 20:00:29 2016 +0200
@@ -415,6 +415,18 @@
         self.__actionToCategory[id(action)] = category
         self.__actionToToolBars[id(action)] = []
     
+    def addActions(self, actions, category):
+        """
+        Public method to add actions to be managed.
+        
+        @param actions list of actions to be managed
+        @type list of QAction
+        @param category category for the toolbar
+        @type str
+        """
+        for action in actions:
+            self.addAction(action, category)
+    
     def removeAction(self, action):
         """
         Public method to remove an action from the manager.

eric ide

mercurial