src/eric7/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
94 94
95 def initMenu(self, mainMenu): 95 def initMenu(self, mainMenu):
96 """ 96 """
97 Public method to generate the extension menu. 97 Public method to generate the extension menu.
98 98
99 @param mainMenu reference to the main menu (QMenu) 99 @param mainMenu reference to the main menu
100 @return populated menu (QMenu) 100 @type QMenu
101 @return populated menu
102 @rtype QMenu
101 """ 103 """
102 menu = QMenu(self.menuTitle(), mainMenu) 104 menu = QMenu(self.menuTitle(), mainMenu)
103 menu.setIcon(EricPixmapCache.getIcon("changesetSign")) 105 menu.setIcon(EricPixmapCache.getIcon("changesetSign"))
104 menu.setTearOffEnabled(True) 106 menu.setTearOffEnabled(True)
105 107
111 113
112 def menuTitle(self): 114 def menuTitle(self):
113 """ 115 """
114 Public method to get the menu title. 116 Public method to get the menu title.
115 117
116 @return title of the menu (string) 118 @return title of the menu
119 @rtype str
117 """ 120 """
118 return self.tr("GPG") 121 return self.tr("GPG")
119 122
120 def __hgGpgSignatures(self): 123 def __hgGpgSignatures(self):
121 """ 124 """

eric ide

mercurial