32 """ |
32 """ |
33 Public method to generate the action objects. |
33 Public method to generate the action objects. |
34 """ |
34 """ |
35 self.hgFetchAct = E5Action( |
35 self.hgFetchAct = E5Action( |
36 self.tr('Fetch changes'), |
36 self.tr('Fetch changes'), |
37 UI.PixmapCache.getIcon("vcsUpdate.png"), |
37 UI.PixmapCache.getIcon("vcsUpdate"), |
38 self.tr('Fetch changes'), |
38 self.tr('Fetch changes'), |
39 0, 0, self, 'mercurial_fetch') |
39 0, 0, self, 'mercurial_fetch') |
40 self.hgFetchAct.setStatusTip(self.tr( |
40 self.hgFetchAct.setStatusTip(self.tr( |
41 'Fetch changes from a remote repository' |
41 'Fetch changes from a remote repository' |
42 )) |
42 )) |
57 |
57 |
58 @param mainMenu reference to the main menu (QMenu) |
58 @param mainMenu reference to the main menu (QMenu) |
59 @return populated menu (QMenu) |
59 @return populated menu (QMenu) |
60 """ |
60 """ |
61 menu = QMenu(self.menuTitle(), mainMenu) |
61 menu = QMenu(self.menuTitle(), mainMenu) |
62 menu.setIcon(UI.PixmapCache.getIcon("vcsUpdate.png")) |
62 menu.setIcon(UI.PixmapCache.getIcon("vcsUpdate")) |
63 menu.setTearOffEnabled(True) |
63 menu.setTearOffEnabled(True) |
64 |
64 |
65 menu.addAction(self.hgFetchAct) |
65 menu.addAction(self.hgFetchAct) |
66 |
66 |
67 menu.aboutToShow.connect(self.__aboutToShowMenu) |
67 menu.aboutToShow.connect(self.__aboutToShowMenu) |