eric6/WebBrowser/WebBrowserView.py

changeset 7717
f32d7965a17e
parent 7716
313e09453306
child 7737
5371a22cf2aa
child 7759
51aa6c6b66f7
equal deleted inserted replaced
7716:313e09453306 7717:f32d7965a17e
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 # TODO: convert this to not use .qrc 1774 html = getHtmlPage("tabCrashPage.html")
1775 html = readAllFileContents(":/html/tabCrashPage.html")
1776 html = html.replace("@IMAGE@", pixmapToDataUrl( 1775 html = html.replace("@IMAGE@", pixmapToDataUrl(
1777 qApp.style().standardIcon(QStyle.SP_MessageBoxWarning).pixmap( 1776 qApp.style().standardIcon(QStyle.SP_MessageBoxWarning).pixmap(
1778 48, 48)).toString()) 1777 48, 48)).toString())
1779 html = html.replace("@FAVICON@", pixmapToDataUrl( 1778 html = html.replace("@FAVICON@", pixmapToDataUrl(
1780 qApp.style() .standardIcon(QStyle.SP_MessageBoxWarning).pixmap( 1779 qApp.style() .standardIcon(QStyle.SP_MessageBoxWarning).pixmap(

eric ide

mercurial