summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-10-08 05:28:00 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-10-08 05:28:00 (GMT)
commit5525a2f1216b03b8a226d4c1d7817024f1010019 (patch)
tree8b0d51607a9590214cff5a4d10965ad4f30ce927
parent87504046a111a4154349f6189ecc51ca85c48670 (diff)
downloadQt-5525a2f1216b03b8a226d4c1d7817024f1010019.zip
Qt-5525a2f1216b03b8a226d4c1d7817024f1010019.tar.gz
Qt-5525a2f1216b03b8a226d4c1d7817024f1010019.tar.bz2
spel
-rw-r--r--doc/src/declarative/advtutorial4.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/declarative/advtutorial4.qdoc b/doc/src/declarative/advtutorial4.qdoc
index ae38c5e..332bf02 100644
--- a/doc/src/declarative/advtutorial4.qdoc
+++ b/doc/src/declarative/advtutorial4.qdoc
@@ -56,9 +56,9 @@ And now the game should be beautifully animated and smooth, with a subtle (or no
\section2 Web-based High Scores
-Another extension we might want for the game is some way of storing and retriveing high scores. In this tutorial we'll show you how to integrate a web enabled high score storage into your QML application. The implementation we've done is very simple - the high score data is posted to a php script running on a server somewhere, and that server then stores it and displays it to visitors. You could request an XML or QML file from that same server, which contained and displayed the scores, but that's beyond the scope of this tutorial.
+Another extension we might want for the game is some way of storing and retrieving high scores. In this tutorial we'll show you how to integrate a web enabled high score storage into your QML application. The implementation we've done is very simple - the high score data is posted to a php script running on a server somewhere, and that server then stores it and displays it to visitors. You could request an XML or QML file from that same server, which contained and displayed the scores, but that's beyond the scope of this tutorial.
-For better high score data, we want the name and time of the player. The time is obtained in the script fairly simply, but we have to ask the player for their name. We thus re-use the dialog QML file to pop up a dialog asking for the player's name (and if they exit this dialog without entering it they have a way to opt out of posting their high score). When the dialog is closed, if the player entered their name we can send the data to the web service in the followign snippet out of the script file:
+For better high score data, we want the name and time of the player. The time is obtained in the script fairly simply, but we have to ask the player for their name. We thus re-use the dialog QML file to pop up a dialog asking for the player's name (and if they exit this dialog without entering it they have a way to opt out of posting their high score). When the dialog is closed, if the player entered their name we can send the data to the web service in the following snippet out of the script file:
\snippet declarative/tutorials/samegame/samegame4/content/samegame.js 1