summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-20 04:08:41 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-05-20 04:11:51 (GMT)
commit5732a44092e17829985a381400bafccc326a0d1f (patch)
tree49d83690535244d81b421806042a81a0764238d1 /doc
parent91251b69edd966965bf7944aec642321c362af2a (diff)
downloadQt-5732a44092e17829985a381400bafccc326a0d1f.zip
Qt-5732a44092e17829985a381400bafccc326a0d1f.tar.gz
Qt-5732a44092e17829985a381400bafccc326a0d1f.tar.bz2
Rename Component::errorsString() -> errorString() (and also for
QDeclarativeComponent)
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/globalobject.qdoc2
-rw-r--r--doc/src/snippets/declarative/componentCreation.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/declarative/globalobject.qdoc b/doc/src/declarative/globalobject.qdoc
index c29a796..bd0a9f5 100644
--- a/doc/src/declarative/globalobject.qdoc
+++ b/doc/src/declarative/globalobject.qdoc
@@ -258,7 +258,7 @@ If you are certain the files will be local, you could simplify to:
The methods and properties of the Component element are defined in its own
page, but when using it dynamically only two methods are usually used.
\c Component.createObject() returns the created object or \c null if there is an error.
-If there is an error, \l {Component::errorsString()}{Component.errorsString()} describes
+If there is an error, \l {Component::errorString()}{Component.errorString()} describes
the error that occurred. Note that createObject() takes exactly one argument, which is set
to the parent of the created object. Graphical objects without a parent will not appear
on the scene, but if you do not wish to parent the item at this point you can safely pass
diff --git a/doc/src/snippets/declarative/componentCreation.js b/doc/src/snippets/declarative/componentCreation.js
index f6fb379..25bc10c 100644
--- a/doc/src/snippets/declarative/componentCreation.js
+++ b/doc/src/snippets/declarative/componentCreation.js
@@ -14,7 +14,7 @@ function finishCreation() {
}
} else if (component.status == Component.Error) {
// Error Handling
- console.log("Error loading component:", component.errorsString());
+ console.log("Error loading component:", component.errorString());
}
}
//![0]
@@ -35,7 +35,7 @@ sprite = component.createObject(appWindow);
if (sprite == null) {
// Error Handling
- console.log("Error loading component:", component.errorsString());
+ console.log("Error loading component:", component.errorString());
} else {
sprite.x = 100;
sprite.y = 100;