84 return testPrinter.supportsMultipleCopies() |
84 return testPrinter.supportsMultipleCopies() |
85 else: |
85 else: |
86 return False |
86 return False |
87 |
87 |
88 |
88 |
89 # TODO: add handler for page.webAuthUxRequested(QWebEngineWebAuthUxRequest) signal |
|
90 class WebBrowserView(QWebEngineView): |
89 class WebBrowserView(QWebEngineView): |
91 """ |
90 """ |
92 Class implementing the web browser view widget. |
91 Class implementing the web browser view widget. |
93 |
92 |
94 @signal sourceChanged(QUrl) emitted after the current URL has changed |
93 @signal sourceChanged(QUrl) emitted after the current URL has changed |
2705 authUxRequest.stateChanged.connect(self.__webAuthUxRequestStateChanged) |
2704 authUxRequest.stateChanged.connect(self.__webAuthUxRequestStateChanged) |
2706 self.__webAuthDialog.show() |
2705 self.__webAuthDialog.show() |
2707 |
2706 |
2708 with contextlib.suppress(TypeError): |
2707 with contextlib.suppress(TypeError): |
2709 |
2708 |
2710 @pyqtSlot("QWebEngineWebAuthUxRequest.WebAuthUxState") |
2709 @pyqtSlot("QWebEngineWebAuthUxRequest::WebAuthUxState") |
2711 def __webAuthUxRequestStateChanged(self, state): |
2710 def __webAuthUxRequestStateChanged(self, state): |
2712 """ |
2711 """ |
2713 Private slot to handle a change of state of the current WebAuth request. |
2712 Private slot to handle a change of state of the current WebAuth request. |
2714 |
2713 |
2715 @param state new state |
2714 @param state new state |