14 except NameError: |
14 except NameError: |
15 pass |
15 pass |
16 |
16 |
17 import os |
17 import os |
18 |
18 |
19 from PyQt5.QtCore import pyqtSignal, PYQT_VERSION, Qt, QUrl, QFileInfo, \ |
19 from PyQt5.QtCore import pyqtSignal, pyqtSlot, PYQT_VERSION, Qt, QUrl, \ |
20 QTimer, QEvent, QPoint, QPointF, QDateTime, QStandardPaths, QByteArray, \ |
20 QFileInfo, QTimer, QEvent, QPoint, QPointF, QDateTime, QStandardPaths, \ |
21 QIODevice, QDataStream |
21 QByteArray, QIODevice, QDataStream |
22 from PyQt5.QtGui import QDesktopServices, QClipboard, QIcon, \ |
22 from PyQt5.QtGui import QDesktopServices, QClipboard, QIcon, \ |
23 QContextMenuEvent, QPixmap |
23 QContextMenuEvent, QPixmap |
24 from PyQt5.QtWidgets import qApp, QStyle, QMenu, QApplication |
24 from PyQt5.QtWidgets import qApp, QStyle, QMenu, QApplication |
25 from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage, \ |
25 from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage, \ |
26 QWebEngineDownloadItem |
26 QWebEngineDownloadItem |
150 self.__page = WebBrowserPage(self) |
150 self.__page = WebBrowserPage(self) |
151 self.setPage(self.__page) |
151 self.setPage(self.__page) |
152 |
152 |
153 self.__page.safeBrowsingAbort.connect(self.safeBrowsingAbort) |
153 self.__page.safeBrowsingAbort.connect(self.safeBrowsingAbort) |
154 self.__page.safeBrowsingBad.connect(self.safeBrowsingBad) |
154 self.__page.safeBrowsingBad.connect(self.safeBrowsingBad) |
|
155 self.__page.printRequested.connect(self.__printPage) |
155 |
156 |
156 def __setRwhvqt(self): |
157 def __setRwhvqt(self): |
157 """ |
158 """ |
158 Private slot to set widget that receives input events. |
159 Private slot to set widget that receives input events. |
159 """ |
160 """ |