Helpviewer/HelpBrowserWV.py

branch
QtWebEngine
changeset 4741
f9e1adc69076
parent 4631
5c1a96925da4
child 4801
71bdc520f640
equal deleted inserted replaced
4735:84e78ee0f361 4741:f9e1adc69076
8 Module implementing the helpbrowser using QWebView. 8 Module implementing the helpbrowser using QWebView.
9 """ 9 """
10 10
11 from __future__ import unicode_literals 11 from __future__ import unicode_literals
12 try: 12 try:
13 str = unicode 13 str = unicode # __IGNORE_EXCEPTION__
14 except NameError: 14 except NameError:
15 pass 15 pass
16 16
17 from PyQt5.QtCore import pyqtSlot, pyqtSignal, QObject, QT_TRANSLATE_NOOP, \ 17 from PyQt5.QtCore import pyqtSlot, pyqtSignal, QObject, QT_TRANSLATE_NOOP, \
18 QUrl, QBuffer, QIODevice, QFileInfo, Qt, QTimer, QEvent, \ 18 QUrl, QBuffer, QIODevice, QFileInfo, Qt, QTimer, QEvent, \
1615 """{0} method is not supported.""").format(method.upper())) 1615 """{0} method is not supported.""").format(method.upper()))
1616 return 1616 return
1617 1617
1618 searchUrl = QUrl(self.page().mainFrame().baseUrl().resolved( 1618 searchUrl = QUrl(self.page().mainFrame().baseUrl().resolved(
1619 QUrl(formElement.attribute("action")))) 1619 QUrl(formElement.attribute("action"))))
1620 if searchUrl.scheme() != "http": 1620 ## if searchUrl.scheme() != "http":
1621 return 1621 ## return
1622 1622
1623 if qVersion() >= "5.0.0": 1623 if qVersion() >= "5.0.0":
1624 from PyQt5.QtCore import QUrlQuery 1624 from PyQt5.QtCore import QUrlQuery
1625 searchUrlQuery = QUrlQuery(searchUrl) 1625 searchUrlQuery = QUrlQuery(searchUrl)
1626 searchEngines = {} 1626 searchEngines = {}

eric ide

mercurial