summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-25 06:28:38 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-25 06:28:38 (GMT)
commitb74e226c09bc37043a06b24029e0e22e4f3cdd16 (patch)
tree11bd335cd176eac754c5ea5af8ae41cec74d22c0 /doc
parent1c9dcb09b79d77bc7d4958e1393437597892bb0b (diff)
downloadQt-b74e226c09bc37043a06b24029e0e22e4f3cdd16.zip
Qt-b74e226c09bc37043a06b24029e0e22e4f3cdd16.tar.gz
Qt-b74e226c09bc37043a06b24029e0e22e4f3cdd16.tar.bz2
Small doc fixes.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/advtutorial2.qdoc2
-rw-r--r--doc/src/declarative/ecmascriptblocks.qdoc4
-rw-r--r--doc/src/declarative/extending.qdoc2
-rw-r--r--doc/src/declarative/focus.qdoc4
-rw-r--r--doc/src/declarative/globalobject.qdoc2
-rw-r--r--doc/src/declarative/qmlintro.qdoc6
6 files changed, 10 insertions, 10 deletions
diff --git a/doc/src/declarative/advtutorial2.qdoc b/doc/src/declarative/advtutorial2.qdoc
index 40a760d..dcc7c70 100644
--- a/doc/src/declarative/advtutorial2.qdoc
+++ b/doc/src/declarative/advtutorial2.qdoc
@@ -93,7 +93,7 @@ To hook this code up to the \e{New Game} button, you alter it as below:
\snippet declarative/tutorials/samegame/samegame2/samegame.qml 1
-We have just replaced the \c{onClicked: print("Implement me!")} with \c{onClicked: initBoard()}.
+We have just replaced the \c{onClicked: console.log("Implement me!")} with \c{onClicked: initBoard()}.
Note that in order to have the function available, you'll need to include the script in the main file,
by adding a script element to it.
diff --git a/doc/src/declarative/ecmascriptblocks.qdoc b/doc/src/declarative/ecmascriptblocks.qdoc
index 815c68c..6ee5a8e 100644
--- a/doc/src/declarative/ecmascriptblocks.qdoc
+++ b/doc/src/declarative/ecmascriptblocks.qdoc
@@ -168,7 +168,7 @@ is illegal in QML.
// Illegal modification of undeclared variable
a = 1;
for (var ii = 1; ii < 10; ++ii) a = a * ii;
-print("Result: " + a);
+ console.log("Result: " + a);
\endcode
It can be trivially modified to this legal code.
@@ -176,7 +176,7 @@ It can be trivially modified to this legal code.
\code
var a = 1;
for (var ii = 1; ii < 10; ++ii) a = a * ii;
-print("Result: " + a);
+ console.log("Result: " + a);
\endcode
Any attempt to modify the global object - either implicitly or explicitly - will
diff --git a/doc/src/declarative/extending.qdoc b/doc/src/declarative/extending.qdoc
index 0233aa7..056b8ab 100644
--- a/doc/src/declarative/extending.qdoc
+++ b/doc/src/declarative/extending.qdoc
@@ -845,7 +845,7 @@ This example adds a new method that behaves like a child:
\code
Item {
function say(text) {
- print("You said " + text);
+ console.log("You said " + text);
}
}
\endcode
diff --git a/doc/src/declarative/focus.qdoc b/doc/src/declarative/focus.qdoc
index 924f590..46bfc38 100644
--- a/doc/src/declarative/focus.qdoc
+++ b/doc/src/declarative/focus.qdoc
@@ -67,7 +67,7 @@ item and thus subsequently be \l {QEvent::ignore()}{ignored}.
\code
Item {
Item {
- Keys.onPressed: if (event.key == Qt.Key_A) { print('Key A was pressed'); event.accepted = true }
+ Keys.onPressed: if (event.key == Qt.Key_A) { console.log('Key A was pressed'); event.accepted = true }
Rectangle {}
}
}
@@ -307,7 +307,7 @@ Rectangle {
Text {
focus: true
text: name
- Keys.onReturnPressed: print(name)
+ Keys.onReturnPressed: console.log(name)
}
}
}
diff --git a/doc/src/declarative/globalobject.qdoc b/doc/src/declarative/globalobject.qdoc
index e3c8b9a..3eadec2 100644
--- a/doc/src/declarative/globalobject.qdoc
+++ b/doc/src/declarative/globalobject.qdoc
@@ -182,7 +182,7 @@ such as ListView, \l Repeater and \l Loader.
sprite = component.createObject();
if(sprite == 0){
// Error Handling
- print(component.errorsString());
+ console.log(component.errorsString());
}else{
sprite.parent = page;
sprite.x = 200;
diff --git a/doc/src/declarative/qmlintro.qdoc b/doc/src/declarative/qmlintro.qdoc
index 78462db..76d915f 100644
--- a/doc/src/declarative/qmlintro.qdoc
+++ b/doc/src/declarative/qmlintro.qdoc
@@ -311,7 +311,7 @@ any visual Item, for example:
\code
Item {
focus: true
- Keys.onSelectPressed: print("Selected")
+ Keys.onSelectPressed: console.log("Selected")
}
\endcode
@@ -323,7 +323,7 @@ and click:
\code
MouseRegion {
- onPressed: print("mouse button pressed")
+ onPressed: console.log("mouse button pressed")
}
\endcode
@@ -335,7 +335,7 @@ the MouseRegion onPressed signal handler has a \e mouse parameter:
\code
MouseRegion {
acceptedButtons: Qt.LeftButton | Qt.RightButton
- onPressed: if (mouse.button == Qt.RightButton) print("Right mouse button pressed")
+ onPressed: if (mouse.button == Qt.RightButton) console.log("Right mouse button pressed")
}
\endcode