815 self.exportBookmarksAct.triggered.connect( |
815 self.exportBookmarksAct.triggered.connect( |
816 bookmarksManager.exportBookmarks) |
816 bookmarksManager.exportBookmarks) |
817 self.__actions.append(self.exportBookmarksAct) |
817 self.__actions.append(self.exportBookmarksAct) |
818 |
818 |
819 if qVersionTuple() >= (5, 8, 0) or ( |
819 if qVersionTuple() >= (5, 8, 0) or ( |
820 not Globals.isWindowsPlatform() or qVersionTuple() >= (5, 7, 0)): |
820 not Globals.isWindowsPlatform() or qVersionTuple() >= (5, 7, 0)): |
821 self.printAct = E5Action( |
821 self.printAct = E5Action( |
822 self.tr('Print'), |
822 self.tr('Print'), |
823 UI.PixmapCache.getIcon("print.png"), |
823 UI.PixmapCache.getIcon("print.png"), |
824 self.tr('&Print'), |
824 self.tr('&Print'), |
825 QKeySequence(self.tr("Ctrl+P", "File|Print")), |
825 QKeySequence(self.tr("Ctrl+P", "File|Print")), |
853 self.__actions.append(self.printPdfAct) |
853 self.__actions.append(self.printPdfAct) |
854 else: |
854 else: |
855 self.printPdfAct = None |
855 self.printPdfAct = None |
856 |
856 |
857 if qVersionTuple() >= (5, 8, 0) or ( |
857 if qVersionTuple() >= (5, 8, 0) or ( |
858 not Globals.isWindowsPlatform() and qVersionTuple() < (5, 7, 0)): |
858 not Globals.isWindowsPlatform() and qVersionTuple() < (5, 7, 0)): |
859 self.printPreviewAct = E5Action( |
859 self.printPreviewAct = E5Action( |
860 self.tr('Print Preview'), |
860 self.tr('Print Preview'), |
861 UI.PixmapCache.getIcon("printPreview.png"), |
861 UI.PixmapCache.getIcon("printPreview.png"), |
862 self.tr('Print Preview'), |
862 self.tr('Print Preview'), |
863 0, 0, self, 'webbrowser_file_print_preview') |
863 0, 0, self, 'webbrowser_file_print_preview') |