eric6/WebBrowser/WebBrowserView.py

branch
maintenance
changeset 7737
5371a22cf2aa
parent 7655
8f53d26009a2
parent 7717
f32d7965a17e
child 7824
096b3ebc1409
equal deleted inserted replaced
7691:e2b36c2167b7 7737:5371a22cf2aa
30 30
31 from .Tools.WebIconLoader import WebIconLoader 31 from .Tools.WebIconLoader import WebIconLoader
32 from .Tools import Scripts 32 from .Tools import Scripts
33 33
34 from . import WebInspector 34 from . import WebInspector
35 from .Tools.WebBrowserTools import readAllFileContents, pixmapToDataUrl 35 from .Tools.WebBrowserTools import getHtmlPage, pixmapToDataUrl
36 36
37 import Preferences 37 import Preferences
38 import UI.PixmapCache 38 import UI.PixmapCache
39 import Utilities 39 import Utilities
40 from Globals import qVersionTuple 40 from Globals import qVersionTuple
1769 @type QWebEnginePage.RenderProcessTerminationStatus 1769 @type QWebEnginePage.RenderProcessTerminationStatus
1770 """ 1770 """
1771 self.page().deleteLater() 1771 self.page().deleteLater()
1772 self.__createNewPage() 1772 self.__createNewPage()
1773 1773
1774 html = readAllFileContents(":/html/tabCrashPage.html") 1774 html = getHtmlPage("tabCrashPage.html")
1775 html = html.replace("@IMAGE@", pixmapToDataUrl( 1775 html = html.replace("@IMAGE@", pixmapToDataUrl(
1776 qApp.style().standardIcon(QStyle.SP_MessageBoxWarning).pixmap( 1776 qApp.style().standardIcon(QStyle.SP_MessageBoxWarning).pixmap(
1777 48, 48)).toString()) 1777 48, 48)).toString())
1778 html = html.replace("@FAVICON@", pixmapToDataUrl( 1778 html = html.replace("@FAVICON@", pixmapToDataUrl(
1779 qApp.style() .standardIcon(QStyle.SP_MessageBoxWarning).pixmap( 1779 qApp.style() .standardIcon(QStyle.SP_MessageBoxWarning).pixmap(

eric ide

mercurial