182 UI.PixmapCache.getIcon("tabCloseOther.png"), |
182 UI.PixmapCache.getIcon("tabCloseOther.png"), |
183 self.tr("Close Others"), self.__tabContextMenuCloseOthers) |
183 self.tr("Close Others"), self.__tabContextMenuCloseOthers) |
184 self.__tabContextMenu.addAction( |
184 self.__tabContextMenu.addAction( |
185 self.tr('Close All'), self.closeAllBrowsers) |
185 self.tr('Close All'), self.closeAllBrowsers) |
186 self.__tabContextMenu.addSeparator() |
186 self.__tabContextMenu.addSeparator() |
187 if qVersion() >= "5.8.0" or ( |
187 # TODO: re-check this once printing on Windows is reliable |
188 not Globals.isWindowsPlatform() and qVersion() < "5.7.0"): |
188 ## if qVersion() >= "5.8.0" or ( |
|
189 ## not Globals.isWindowsPlatform() and qVersion() < "5.7.0"): |
|
190 if not Globals.isWindowsPlatform() and ( |
|
191 qVersion() < "5.7.0" or qVersion() >= "5.8.0"): |
189 self.__tabContextMenu.addAction( |
192 self.__tabContextMenu.addAction( |
190 UI.PixmapCache.getIcon("printPreview.png"), |
193 UI.PixmapCache.getIcon("printPreview.png"), |
191 self.tr('Print Preview'), self.__tabContextMenuPrintPreview) |
194 self.tr('Print Preview'), self.__tabContextMenuPrintPreview) |
192 if qVersion() >= "5.8.0" or ( |
195 # TODO: re-check this once printing on Windows is reliable |
193 not Globals.isWindowsPlatform() or qVersion() >= "5.7.0"): |
196 ## if qVersion() >= "5.8.0" or ( |
|
197 ## not Globals.isWindowsPlatform() or qVersion() >= "5.7.0"): |
|
198 if not Globals.isWindowsPlatform() and qVersion() >= "5.7.0": |
194 self.__tabContextMenu.addAction( |
199 self.__tabContextMenu.addAction( |
195 UI.PixmapCache.getIcon("print.png"), |
200 UI.PixmapCache.getIcon("print.png"), |
196 self.tr('Print'), self.__tabContextMenuPrint) |
201 self.tr('Print'), self.__tabContextMenuPrint) |
|
202 # TODO: check this on macOS |
197 if Globals.isLinuxPlatform() or qVersion() >= "5.7.0": |
203 if Globals.isLinuxPlatform() or qVersion() >= "5.7.0": |
198 self.__tabContextMenu.addAction( |
204 self.__tabContextMenu.addAction( |
199 UI.PixmapCache.getIcon("printPdf.png"), |
205 UI.PixmapCache.getIcon("printPdf.png"), |
200 self.tr('Print as PDF'), self.__tabContextMenuPrintPdf) |
206 self.tr('Print as PDF'), self.__tabContextMenuPrintPdf) |
201 self.__tabContextMenu.addSeparator() |
207 self.__tabContextMenu.addSeparator() |