Ejemplo n.º 1
0
 def add_action(self, action):
     """
     Add an action to the Toolbar
     @action: Should be an instance(or subclass) of QAction
     """
     settings.add_toolbar_item_for_plugins(action)
     self._toolbar.addAction(action)
Ejemplo n.º 2
0
 def add_action(self, action):
     """
     Add an action to the Toolbar
     @action: Should be an instance(or subclass) of QAction
     """
     settings.add_toolbar_item_for_plugins(action)
     self._toolbar.addAction(action)