Exemplo n.º 1
0
 def _addMenuFromActions(self, actions, name):
     menu = qtsupport.actionGroupToMenu(actions, name, self)
     self.menuBar().addMenu(menu)
     return menu
Exemplo n.º 2
0
 def itemContextMenu(self, item):
     actions = self.itemActions(item)
     if actions:
         return qtsupport.actionGroupToMenu(actions,
                                            self.tr('Context menu'),
                                            self._app.treeview)
Exemplo n.º 3
0
 def itemContextMenu(self, item):
     actions = self.itemActions(item)
     if actions:
         return qtsupport.actionGroupToMenu(actions,
                                             self.tr('Context menu'),
                                             self._app.treeview)