341 act.setEnabled(self.__tabWidget.canRestoreClosedTab()) |
341 act.setEnabled(self.__tabWidget.canRestoreClosedTab()) |
342 self.addSeparator() |
342 self.addSeparator() |
343 |
343 |
344 act = self.addAction(UI.PixmapCache.getIcon("history.png"), |
344 act = self.addAction(UI.PixmapCache.getIcon("history.png"), |
345 self.tr("Show All History...")) |
345 self.tr("Show All History...")) |
346 act.triggered[()].connect(self.__showHistoryDialog) |
346 act.triggered.connect(self.__showHistoryDialog) |
347 act = self.addAction(UI.PixmapCache.getIcon("historyClear.png"), |
347 act = self.addAction(UI.PixmapCache.getIcon("historyClear.png"), |
348 self.tr("Clear History...")) |
348 self.tr("Clear History...")) |
349 act.triggered[()].connect(self.__clearHistoryDialog) |
349 act.triggered.connect(self.__clearHistoryDialog) |
350 |
350 |
351 def setInitialActions(self, actions): |
351 def setInitialActions(self, actions): |
352 """ |
352 """ |
353 Public method to set the list of actions that should appear first in |
353 Public method to set the list of actions that should appear first in |
354 the menu. |
354 the menu. |