diff options
author | Bill King <bill.king@nokia.com> | 2009-09-29 00:09:30 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-09-29 00:09:30 (GMT) |
commit | b88817e481f2cc2aea0787fe355659b581599abb (patch) | |
tree | 3d992b18347aa2ecb54e5a3b6dff4052bb4c0194 /examples/webkit/formextractor | |
parent | 88466bcb2162cd063912dbb0e73982095c15dcba (diff) | |
download | Qt-b88817e481f2cc2aea0787fe355659b581599abb.zip Qt-b88817e481f2cc2aea0787fe355659b581599abb.tar.gz Qt-b88817e481f2cc2aea0787fe355659b581599abb.tar.bz2 |
Fixes compile
Diffstat (limited to 'examples/webkit/formextractor')
-rw-r--r-- | examples/webkit/formextractor/formextractor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/webkit/formextractor/formextractor.cpp b/examples/webkit/formextractor/formextractor.cpp index 4b181e8..3ce888c 100644 --- a/examples/webkit/formextractor/formextractor.cpp +++ b/examples/webkit/formextractor/formextractor.cpp @@ -67,15 +67,15 @@ void FormExtractor::submit() QWebElement femaleGender = frame->findFirstElement("#genderFemale"); QWebElement updates = frame->findFirstElement("#updates"); - ui.firstNameEdit->setText(firstName.evaluateJavaScript("this.value").toString()); - ui.lastNameEdit->setText(lastName.evaluateJavaScript("this.value").toString()); + ui.firstNameEdit->setText(firstName.evaluateScript("this.value").toString()); + ui.lastNameEdit->setText(lastName.evaluateScript("this.value").toString()); - if (maleGender.evaluateJavaScript("this.checked").toBool()) - ui.genderEdit->setText(maleGender.evaluateJavaScript("this.value").toString()); - else if (femaleGender.evaluateJavaScript("this.checked").toBool()) - ui.genderEdit->setText(femaleGender.evaluateJavaScript("this.value").toString()); + if (maleGender.evaluateScript("this.checked").toBool()) + ui.genderEdit->setText(maleGender.evaluateScript("this.value").toString()); + else if (femaleGender.evaluateScript("this.checked").toBool()) + ui.genderEdit->setText(femaleGender.evaluateScript("this.value").toString()); - if (updates.evaluateJavaScript("this.checked").toBool()) + if (updates.evaluateScript("this.checked").toBool()) ui.updatesEdit->setText("Yes"); else ui.updatesEdit->setText("No"); |