summaryrefslogtreecommitdiffstats
path: root/examples/webkit
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>2009-09-29 11:10:54 (GMT)
committerJocelyn Turcotte <jocelyn.turcotte@nokia.com>2009-09-29 11:12:55 (GMT)
commitb31159a4e2ce5383a800b4b2e7210cf5423b418d (patch)
tree1e24a20fd37c524048528ff0e24ca2a0d7fed990 /examples/webkit
parent7f10a7c25fe17b02f83098399797a219e29703ae (diff)
downloadQt-b31159a4e2ce5383a800b4b2e7210cf5423b418d.zip
Qt-b31159a4e2ce5383a800b4b2e7210cf5423b418d.tar.gz
Qt-b31159a4e2ce5383a800b4b2e7210cf5423b418d.tar.bz2
Recorrect formextractor example build break after updating 3rdparty/webkit
Diffstat (limited to 'examples/webkit')
-rw-r--r--examples/webkit/formextractor/formextractor.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/webkit/formextractor/formextractor.cpp b/examples/webkit/formextractor/formextractor.cpp
index 3ce888c..4b181e8 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.evaluateScript("this.value").toString());
- ui.lastNameEdit->setText(lastName.evaluateScript("this.value").toString());
+ ui.firstNameEdit->setText(firstName.evaluateJavaScript("this.value").toString());
+ ui.lastNameEdit->setText(lastName.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 (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 (updates.evaluateScript("this.checked").toBool())
+ if (updates.evaluateJavaScript("this.checked").toBool())
ui.updatesEdit->setText("Yes");
else
ui.updatesEdit->setText("No");