diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2012-08-24 13:31:52 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-24 14:20:52 +0200 |
commit | 2a78bf40acece9aba2b9be882e5a1ca06a8e2135 (patch) | |
tree | 9c36dd74d442c47540aba63ee0eb817581818945 /examples/tutorials | |
parent | a4573dd927991937751f1e56cc02f7946f4f182b (diff) |
Make samegame work again
Fixes regression caused by commit
6ebf215fdaf2d757ab90ae4d46c4b938e978e2dc. The commit did update the
autotests to use "Sql.LocalStorage.openDatabaseSync" instead of the
old "Sql.openDatabaseSync", but the examples and demos were not
updated accordingly.
Task-number: QTBUG-26928
Change-Id: Ifcff830e195a05a26ee095e11d4185f6d94eb1aa
Reviewed-by: Leonardo Sobral Cunha <leo.cunha@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'examples/tutorials')
-rwxr-xr-x | examples/tutorials/samegame/samegame4/content/samegame.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorials/samegame/samegame4/content/samegame.js b/examples/tutorials/samegame/samegame4/content/samegame.js index 7bb7243914..ad4d39d7b1 100755 --- a/examples/tutorials/samegame/samegame4/content/samegame.js +++ b/examples/tutorials/samegame/samegame4/content/samegame.js @@ -193,7 +193,7 @@ function saveHighScore(name) { if (scoresURL != "") sendHighScore(name); - var db = Sql.openDatabaseSync("SameGameScores", "1.0", "Local SameGame High Scores", 100); + var db = Sql.LocalStorage.openDatabaseSync("SameGameScores", "1.0", "Local SameGame High Scores", 100); var dataStr = "INSERT INTO Scores VALUES(?, ?, ?, ?)"; var data = [name, gameCanvas.score, maxColumn + "x" + maxRow, Math.floor(gameDuration / 1000)]; db.transaction(function(tx) { |