diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2009-08-24 06:03:27 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-08-24 06:03:27 (GMT) |
commit | f8fabc79d74b3043ca524b6376d662f46b4a7f2e (patch) | |
tree | f4c9b40988d55ca64950626e6e63f8fd644d20ed /doc/src/snippets/code/src_xml_dom_qdom.cpp | |
parent | 232fa760b0fb304116f0d17c3e7c25fdcea3d6bf (diff) | |
parent | ede5f8cb8ae1fcc7631cc05e9c57c0cfa5790ef5 (diff) | |
download | Qt-f8fabc79d74b3043ca524b6376d662f46b4a7f2e.zip Qt-f8fabc79d74b3043ca524b6376d662f46b4a7f2e.tar.gz Qt-f8fabc79d74b3043ca524b6376d662f46b4a7f2e.tar.bz2 |
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Conflicts:
demos/embedded/fluidlauncher/pictureflow.cpp
src/3rdparty/webkit/VERSION
src/3rdparty/webkit/WebCore/ChangeLog
src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
tests/auto/moc/os9-newlines.h
tests/auto/qsqldatabase/tst_databases.h
tools/xmlpatterns/main.h
tools/xmlpatterns/qcoloringmessagehandler_p.h
tools/xmlpatterns/qcoloroutput.cpp
tools/xmlpatterns/qcoloroutput_p.h
Diffstat (limited to 'doc/src/snippets/code/src_xml_dom_qdom.cpp')
-rw-r--r-- | doc/src/snippets/code/src_xml_dom_qdom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/snippets/code/src_xml_dom_qdom.cpp b/doc/src/snippets/code/src_xml_dom_qdom.cpp index d07d6d2..622295d 100644 --- a/doc/src/snippets/code/src_xml_dom_qdom.cpp +++ b/doc/src/snippets/code/src_xml_dom_qdom.cpp @@ -68,7 +68,7 @@ QDomElement element4 = document.createElement("MyElement"); //! [7] -<link href="http://qtsoftware.com" color="red" /> +<link href="http://qt.nokia.com" color="red" /> //! [7] @@ -76,10 +76,10 @@ QDomElement element4 = document.createElement("MyElement"); QDomElement e = //... //... QDomAttr a = e.attributeNode("href"); -cout << a.value() << endl; // prints "http://qtsoftware.com" -a.setValue("http://doc.trolltech.com"); // change the node's attribute +cout << a.value() << endl; // prints "http://qt.nokia.com" +a.setValue("http://qt.nokia.com/doc"); // change the node's attribute QDomAttr a2 = e.attributeNode("href"); -cout << a2.value() << endl; // prints "http://doc.trolltech.com" +cout << a2.value() << endl; // prints "http://qt.nokia.com/doc" //! [8] |