712 if not self.__initShortcutsOnly: |
712 if not self.__initShortcutsOnly: |
713 self.exportBookmarksAct.triggered.connect( |
713 self.exportBookmarksAct.triggered.connect( |
714 bookmarksManager.exportBookmarks) |
714 bookmarksManager.exportBookmarks) |
715 self.__actions.append(self.exportBookmarksAct) |
715 self.__actions.append(self.exportBookmarksAct) |
716 |
716 |
717 if not Globals.isWindowsPlatform() or \ |
717 if qVersion() >= "5.8.0" or ( |
718 qVersion() >= "5.7.0": |
718 not Globals.isWindowsPlatform() or qVersion() >= "5.7.0"): |
719 self.printAct = E5Action( |
719 self.printAct = E5Action( |
720 self.tr('Print'), |
720 self.tr('Print'), |
721 UI.PixmapCache.getIcon("print.png"), |
721 UI.PixmapCache.getIcon("print.png"), |
722 self.tr('&Print'), |
722 self.tr('&Print'), |
723 QKeySequence(self.tr("Ctrl+P", "File|Print")), |
723 QKeySequence(self.tr("Ctrl+P", "File|Print")), |
750 self.__tabWidget.printBrowserPdf) |
750 self.__tabWidget.printBrowserPdf) |
751 self.__actions.append(self.printPdfAct) |
751 self.__actions.append(self.printPdfAct) |
752 else: |
752 else: |
753 self.printPdfAct = None |
753 self.printPdfAct = None |
754 |
754 |
755 if not Globals.isWindowsPlatform() and qVersion() < "5.7.0": |
755 if qVersion() >= "5.8.0" or ( |
|
756 not Globals.isWindowsPlatform() and qVersion() < "5.7.0"): |
756 self.printPreviewAct = E5Action( |
757 self.printPreviewAct = E5Action( |
757 self.tr('Print Preview'), |
758 self.tr('Print Preview'), |
758 UI.PixmapCache.getIcon("printPreview.png"), |
759 UI.PixmapCache.getIcon("printPreview.png"), |
759 self.tr('Print Preview'), |
760 self.tr('Print Preview'), |
760 0, 0, self, 'webbrowser_file_print_preview') |
761 0, 0, self, 'webbrowser_file_print_preview') |