summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-04-27 05:11:09 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-04-27 05:11:09 (GMT)
commitdb51f7d5452f645db252341d8a633a299b2ef2e1 (patch)
tree1be01d82f6ac68e159d3a9da9d86eac96835f82d /demos
parent09293f1d07b019dc7bfe95afb93364cc87774e82 (diff)
parentf0826662baaf7916f7b5f4fa9c8e9abab457731d (diff)
downloadQt-db51f7d5452f645db252341d8a633a299b2ef2e1.zip
Qt-db51f7d5452f645db252341d8a633a299b2ef2e1.tar.gz
Qt-db51f7d5452f645db252341d8a633a299b2ef2e1.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (29 commits) Plugins documentation. Fix update issue when an item has an effect and child. Fix QDeclarativeTextInput and QGraphicsView in regards of input methods hints. Disallow "Qt" as namespace import Don't "adjust" the z value of a delegate that has been cached. Correctly inherit extension properties Autotests More QDeclarativeNetworkAccessManagerFactory doc clarification. Fix QDeclarativeNetworkAccessManagerFactory docs. Don't crash on invalid model remove signal. Ensure scheduled layout can occur before testing. Fix remaining 4.6 type registrations (to 4.7). doc anchor margins vs. anchor (line) state/animation. These examples should not be included in this test Unify naming of settings / UI to be "Qt Qml Runtime" Improved error messages for type resolving, new debug option Link to example files from tutorial pages Add tutorial for writing QML extensions no export in plugin Add doc pages for qml examples. ...
Diffstat (limited to 'demos')
-rwxr-xr-xdemos/declarative/samegame/SamegameCore/samegame.js9
-rw-r--r--demos/declarative/snake/content/snake.js8
2 files changed, 8 insertions, 9 deletions
diff --git a/demos/declarative/samegame/SamegameCore/samegame.js b/demos/declarative/samegame/SamegameCore/samegame.js
index aafbfdf..bf99ca3 100755
--- a/demos/declarative/samegame/SamegameCore/samegame.js
+++ b/demos/declarative/samegame/SamegameCore/samegame.js
@@ -5,7 +5,6 @@ var maxRow = 15;
var maxIndex = maxColumn*maxRow;
var board = new Array(maxIndex);
var blockSrc = "SamegameCore/BoomBlock.qml";
-var scoresURL = "http://qtfx-nokia.trolltech.com.au/samegame/scores.php";
var scoresURL = "";
var gameDuration;
var component = Qt.createComponent(blockSrc);
@@ -179,8 +178,8 @@ function createBlock(column,row){
if(component.isReady){
var dynamicObject = component.createObject();
if(dynamicObject == null){
- print("error creating block");
- print(component.errorsString());
+ console.log("error creating block");
+ console.log(component.errorsString());
return false;
}
dynamicObject.type = Math.floor(Math.random() * 3);
@@ -193,8 +192,8 @@ function createBlock(column,row){
dynamicObject.spawned = true;
board[index(column,row)] = dynamicObject;
}else{
- print("error loading block component");
- print(component.errorsString());
+ console.log("error loading block component");
+ console.log(component.errorsString());
return false;
}
return true;
diff --git a/demos/declarative/snake/content/snake.js b/demos/declarative/snake/content/snake.js
index 2457fbd..02f9757 100644
--- a/demos/declarative/snake/content/snake.js
+++ b/demos/declarative/snake/content/snake.js
@@ -54,9 +54,9 @@ function startNewGame()
} else {
if(linkComponent.isReady == false){
if(linkComponent.isError == true)
- print(linkComponent.errorsString());
+ console.log(linkComponent.errorsString());
else
- print("Still loading linkComponent");
+ console.log("Still loading linkComponent");
continue;//TODO: Better error handling?
}
var link = linkComponent.createObject();
@@ -295,9 +295,9 @@ function createCookie(value) {
if(cookieComponent.isReady == false){
if(cookieComponent.isError == true)
- print(cookieComponent.errorsString());
+ console.log(cookieComponent.errorsString());
else
- print("Still loading cookieComponent");
+ console.log("Still loading cookieComponent");
return;//TODO: Better error handling?
}
cookie = cookieComponent.createObject();