summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-19 03:36:47 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-19 03:36:47 (GMT)
commit25730d35960f10a51a086115e79e812ae261b5f8 (patch)
treec9714260db9c5d3a2954fedd57d75e60e9d7ae3d
parent9e8ff32da0eeaa9dfe03b5ffc123bd6390951494 (diff)
parentaf98f27a847688e53ab1d34b4a9c04bdc63fe3e1 (diff)
downloadQt-25730d35960f10a51a086115e79e812ae261b5f8.zip
Qt-25730d35960f10a51a086115e79e812ae261b5f8.tar.gz
Qt-25730d35960f10a51a086115e79e812ae261b5f8.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into kinetic-transform
-rw-r--r--examples/xml/streambookmarks/xbelreader.cpp9
-rw-r--r--examples/xml/streambookmarks/xbelreader.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/xml/streambookmarks/xbelreader.cpp b/examples/xml/streambookmarks/xbelreader.cpp
index 729fcf8..4472f8a 100644
--- a/examples/xml/streambookmarks/xbelreader.cpp
+++ b/examples/xml/streambookmarks/xbelreader.cpp
@@ -73,6 +73,15 @@ bool XbelReader::read(QIODevice *device)
}
//! [1]
+//! [2]
+void XbelReader::readUnknownElement()
+{
+ while (readNextStartElement()) {
+ readUnknownElement();
+ }
+}
+//! [2]
+
//! [3]
void XbelReader::readXBEL()
{
diff --git a/examples/xml/streambookmarks/xbelreader.h b/examples/xml/streambookmarks/xbelreader.h
index 2debadc..80f0a28 100644
--- a/examples/xml/streambookmarks/xbelreader.h
+++ b/examples/xml/streambookmarks/xbelreader.h
@@ -62,6 +62,7 @@ public:
private:
//! [2]
+ void readUnknownElement();
void readXBEL();
void readTitle(QTreeWidgetItem *item);
void readSeparator(QTreeWidgetItem *item);