E5Gui/E5ToolBarManager.py

changeset 4113
feac3108a780
parent 4021
195a471c327b
child 4331
711e7c35a49b
--- a/E5Gui/E5ToolBarManager.py	Sun Feb 15 15:30:50 2015 +0100
+++ b/E5Gui/E5ToolBarManager.py	Sun Feb 15 17:22:58 2015 +0100
@@ -451,6 +451,15 @@
             if action in self.__categoryToActions[category]:
                 self.__categoryToActions[category].remove(action)
     
+    def removeCategoryActions(self, category):
+        """
+        Public method to remove the actions belonging to a category.
+        
+        @param category category for the actions (string)
+        """
+        for action in self.categoryActions(category):
+            self.removeAction(action)
+    
     def saveState(self, version=0):
         """
         Public method to save the state of the toolbar manager.
@@ -639,7 +648,7 @@
         """
         Public method to get the actions belonging to a category.
         
-        @param category category for the toolbar (string)
+        @param category category for the actions (string)
         @return list of actions (list of QAction)
         """
         if category not in self.__categoryToActions:

eric ide

mercurial