2686 Private slot to handle WebAuth requests. |
2686 Private slot to handle WebAuth requests. |
2687 |
2687 |
2688 @param authUxRequest reference to the WebAuth request object |
2688 @param authUxRequest reference to the WebAuth request object |
2689 @type QWebEngineWebAuthUxRequest |
2689 @type QWebEngineWebAuthUxRequest |
2690 """ |
2690 """ |
2691 from .WebBrowserWebAuthDialog import WebBrowserWebAuthDialog |
2691 from .WebAuth.WebBrowserWebAuthDialog import WebBrowserWebAuthDialog |
2692 |
2692 |
2693 if self.__webAuthDialog is not None: |
2693 if self.__webAuthDialog is not None: |
2694 del self.__webAuthDialog |
2694 del self.__webAuthDialog |
2695 self.__webAuthDialog = None |
2695 self.__webAuthDialog = None |
2696 |
2696 |
2697 self.__webAuthDialog = WebBrowserWebAuthDialog(authUxRequest, self.__mw) |
2697 self.__webAuthDialog = WebBrowserWebAuthDialog(authUxRequest, self.__mw) |
2698 self.__webAuthDialog.setModal(False) |
2698 self.__webAuthDialog.setModal(False) |
2699 self.__webAuthDialog.setWindowFlags( |
2699 self.__webAuthDialog.setWindowFlags( |
2700 self.__webAuthDialog.windowFlags() |
2700 self.__webAuthDialog.windowFlags() |
2701 & Qt.WindowType.WindowContextHelpButtonHint |
2701 & ~Qt.WindowType.WindowContextHelpButtonHint |
2702 ) |
2702 ) |
2703 |
2703 |
2704 authUxRequest.stateChanged.connect(self.__webAuthUxRequestStateChanged) |
2704 authUxRequest.stateChanged.connect(self.__webAuthUxRequestStateChanged) |
2705 self.__webAuthDialog.show() |
2705 self.__webAuthDialog.show() |
2706 |
2706 |