diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-01-24 16:07:24 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-25 06:32:34 +0100 |
commit | b2869013fdfb76d60ce8750e24614111f78fef5c (patch) | |
tree | c57ec9c0cfc1226c1ac9d66735ddd267b20cffca /examples/declarative/samegame/content | |
parent | 149f6afe321ce59aebe4ce2f9dddd1881d0ac22b (diff) |
Move sqldatabase into a module API plugin
Change-Id: Icd0bbfe16804abf1bbadbabddf3a30b5b18df30c
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples/declarative/samegame/content')
-rwxr-xr-x | examples/declarative/samegame/content/samegame.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/declarative/samegame/content/samegame.js b/examples/declarative/samegame/content/samegame.js index 8c15af763a..611767584b 100755 --- a/examples/declarative/samegame/content/samegame.js +++ b/examples/declarative/samegame/content/samegame.js @@ -1,5 +1,6 @@ /* This script file handles the game logic */ .pragma library +.import QtQuick.LocalStorage 2.0 as Sql var maxColumn = 10; var maxRow = 15; @@ -229,7 +230,7 @@ function createBlock(column,row) function initHighScoreBar() { - var db = openDatabaseSync( + var db = Sql.openDatabaseSync( "SameGameScores", "1.0", "Local SameGame High Scores", @@ -254,7 +255,7 @@ function saveHighScore(name) if (scoresURL != "") sendHighScore(name); // Offline storage - var db = openDatabaseSync( + var db = Sql.openDatabaseSync( "SameGameScores", "1.0", "Local SameGame High Scores", |