WebBrowser/WebBrowserTabWidget.py

changeset 5993
4b2b9be7de14
parent 5806
2405d595c9cf
child 6026
4773c9469880
equal deleted inserted replaced
5992:d184ca2d3a95 5993:4b2b9be7de14
183 UI.PixmapCache.getIcon("tabCloseOther.png"), 183 UI.PixmapCache.getIcon("tabCloseOther.png"),
184 self.tr("Close Others"), self.__tabContextMenuCloseOthers) 184 self.tr("Close Others"), self.__tabContextMenuCloseOthers)
185 self.__tabContextMenu.addAction( 185 self.__tabContextMenu.addAction(
186 self.tr('Close All'), self.closeAllBrowsers) 186 self.tr('Close All'), self.closeAllBrowsers)
187 self.__tabContextMenu.addSeparator() 187 self.__tabContextMenu.addSeparator()
188 # TODO: re-check this once printing on Windows is reliable 188 if qVersionTuple() >= (5, 8, 0) or (
189 ## if qVersionTuple() >= (5, 8, 0) or ( 189 not Globals.isWindowsPlatform() and qVersionTuple() < (5, 7, 0)):
190 ## not Globals.isWindowsPlatform() and qVersionTuple() < (5, 7, 0)):
191 if not Globals.isWindowsPlatform() and (
192 qVersionTuple() < (5, 7, 0) or qVersionTuple() >= (5, 8, 0)):
193 self.__tabContextMenu.addAction( 190 self.__tabContextMenu.addAction(
194 UI.PixmapCache.getIcon("printPreview.png"), 191 UI.PixmapCache.getIcon("printPreview.png"),
195 self.tr('Print Preview'), self.__tabContextMenuPrintPreview) 192 self.tr('Print Preview'), self.__tabContextMenuPrintPreview)
196 # TODO: re-check this once printing on Windows is reliable 193 if qVersionTuple() >= (5, 8, 0) or (
197 ## if qVersionTuple() >= (5, 8, 0) or ( 194 not Globals.isWindowsPlatform() or qVersionTuple() >= (5, 7, 0)):
198 ## not Globals.isWindowsPlatform() or qVersionTuple() >= (5, 7, 0)):
199 if not Globals.isWindowsPlatform() and qVersionTuple() >= (5, 7, 0):
200 self.__tabContextMenu.addAction( 195 self.__tabContextMenu.addAction(
201 UI.PixmapCache.getIcon("print.png"), 196 UI.PixmapCache.getIcon("print.png"),
202 self.tr('Print'), self.__tabContextMenuPrint) 197 self.tr('Print'), self.__tabContextMenuPrint)
203 if Globals.isLinuxPlatform() or qVersionTuple() >= (5, 7, 0): 198 if Globals.isLinuxPlatform() or qVersionTuple() >= (5, 7, 0):
204 self.__tabContextMenu.addAction( 199 self.__tabContextMenu.addAction(

eric ide

mercurial