1531 if searchUrl.scheme() != "http": |
1531 if searchUrl.scheme() != "http": |
1532 return |
1532 return |
1533 |
1533 |
1534 if qVersion() >= "5.0.0": |
1534 if qVersion() >= "5.0.0": |
1535 from PyQt5.QtCore import QUrlQuery |
1535 from PyQt5.QtCore import QUrlQuery |
1536 searchUrlQuery = QUrlQuery() |
1536 searchUrlQuery = QUrlQuery(searchUrl) |
1537 searchEngines = {} |
1537 searchEngines = {} |
1538 inputFields = formElement.findAll("input") |
1538 inputFields = formElement.findAll("input") |
1539 for inputField in inputFields.toList(): |
1539 for inputField in inputFields.toList(): |
1540 type_ = inputField.attribute("type", "text") |
1540 type_ = inputField.attribute("type", "text") |
1541 name = inputField.attribute("name") |
1541 name = inputField.attribute("name") |