diff options
author | artoka <arto.katajasalo@digia.com> | 2011-11-01 12:47:12 (GMT) |
---|---|---|
committer | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-11-01 13:10:45 (GMT) |
commit | 6f64d81da628dcc9180170f2ae4d206c5e2c3899 (patch) | |
tree | 9d80dd684ffc469284eb32ead4f20bfdee4435bb /doc/src | |
parent | adc3ba426acee1c27e8f62c418b5d458784dbefa (diff) | |
download | Qt-6f64d81da628dcc9180170f2ae4d206c5e2c3899.zip Qt-6f64d81da628dcc9180170f2ae4d206c5e2c3899.tar.gz Qt-6f64d81da628dcc9180170f2ae4d206c5e2c3899.tar.bz2 |
QXmlQuery::bindVariable documentation bug
Second code example in the documentation stated that the setQuery-method should be called before bindVariable-method.
Changed so that bindVariable-method is called first and then the setQuery-method as it should be.
Task-number: QTBUG-17025
Merge-request: 2698
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/snippets/qxmlquery/bindingExample.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/snippets/qxmlquery/bindingExample.cpp b/doc/src/snippets/qxmlquery/bindingExample.cpp index 62e19be..a2c53eb 100644 --- a/doc/src/snippets/qxmlquery/bindingExample.cpp +++ b/doc/src/snippets/qxmlquery/bindingExample.cpp @@ -44,6 +44,7 @@ device.open(QIODevice::ReadOnly); QXmlQuery query; - query.setQuery("doc($inputDocument)/query[theDocument]"); query.bindVariable("inputDocument", &device); + query.setQuery("doc($inputDocument)/query[theDocument]"); + //! [0] |