summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorartoka <arto.katajasalo@digia.com>2011-11-01 12:47:12 (GMT)
committerCasper van Donderen <casper.vandonderen@nokia.com>2011-11-01 13:10:45 (GMT)
commit6f64d81da628dcc9180170f2ae4d206c5e2c3899 (patch)
tree9d80dd684ffc469284eb32ead4f20bfdee4435bb /doc/src
parentadc3ba426acee1c27e8f62c418b5d458784dbefa (diff)
downloadQt-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.cpp3
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]