eric7/WebBrowser/WebBrowserView.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8354
12ebd3934fef
child 8358
144a6b854f70
diff -r 8a7677a63c8d -r 68ec9c3d4de5 eric7/WebBrowser/WebBrowserView.py
--- a/eric7/WebBrowser/WebBrowserView.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/WebBrowser/WebBrowserView.py	Sat May 22 18:51:46 2021 +0200
@@ -24,8 +24,8 @@
     QWebEngineView, QWebEnginePage, QWebEngineDownloadItem
 )
 
-from E5Gui import E5MessageBox, E5FileDialog
-from E5Gui.E5Application import e5App
+from E5Gui import EricMessageBox, EricFileDialog
+from E5Gui.EricApplication import ericApp
 
 from WebBrowser.WebBrowserWindow import WebBrowserWindow
 from .WebBrowserPage import WebBrowserPage
@@ -256,7 +256,7 @@
                 name = QUrl.fromLocalFile(name.toString())
             
             if not QFileInfo(name.toLocalFile()).exists():
-                E5MessageBox.critical(
+                EricMessageBox.critical(
                     self,
                     self.tr("eric Web Browser"),
                     self.tr(
@@ -267,7 +267,7 @@
             if name.toLocalFile().lower().endswith((".pdf", ".chm")):
                 started = QDesktopServices.openUrl(name)
                 if not started:
-                    E5MessageBox.critical(
+                    EricMessageBox.critical(
                         self,
                         self.tr("eric Web Browser"),
                         self.tr(
@@ -278,7 +278,7 @@
         elif name.scheme() in ["mailto"]:
             started = QDesktopServices.openUrl(name)
             if not started:
-                E5MessageBox.critical(
+                EricMessageBox.critical(
                     self,
                     self.tr("eric Web Browser"),
                     self.tr(
@@ -290,7 +290,7 @@
             if name.toString().lower().endswith((".pdf", ".chm")):
                 started = QDesktopServices.openUrl(name)
                 if not started:
-                    E5MessageBox.critical(
+                    EricMessageBox.critical(
                         self,
                         self.tr("eric Web Browser"),
                         self.tr(
@@ -1771,11 +1771,11 @@
         
         html = getHtmlPage("tabCrashPage.html")
         html = html.replace("@IMAGE@", pixmapToDataUrl(
-            e5App().style().standardIcon(
+            ericApp().style().standardIcon(
                 QStyle.StandardPixmap.SP_MessageBoxWarning).pixmap(48, 48)
         ).toString())
         html = html.replace("@FAVICON@", pixmapToDataUrl(
-            e5App().style() .standardIcon(
+            ericApp().style() .standardIcon(
                 QStyle.StandardPixmap.SP_MessageBoxWarning).pixmap(16, 16)
         ).toString())
         html = html.replace(
@@ -1947,7 +1947,7 @@
         fileName = ""
         saveFormat = QWebEngineDownloadItem.SavePageFormat.MimeHtmlSaveFormat
         
-        fileName, selectedFilter = E5FileDialog.getSaveFileNameAndFilter(
+        fileName, selectedFilter = EricFileDialog.getSaveFileNameAndFilter(
             None,
             self.tr("Save Web Page"),
             defaultFileName,
@@ -2297,7 +2297,7 @@
             from .Download.DownloadUtilities import dataString
             sizeStr = dataString(quotaRequest.requestedSize())
             
-            ok = E5MessageBox.yesNo(
+            ok = EricMessageBox.yesNo(
                 self,
                 self.tr("Quota Request"),
                 self.tr("""<p> Allow the website at <b>{0}</b> to use"""

eric ide

mercurial