summaryrefslogtreecommitdiff
path: root/examples/xml/streambookmarks
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-08-19 10:09:49 +1000
committerBill King <bill.king@nokia.com>2009-08-19 10:10:46 +1000
commitaf98f27a847688e53ab1d34b4a9c04bdc63fe3e1 (patch)
tree6c79efab4bf157aa4468ba6c88e34b0b8e2bde6a /examples/xml/streambookmarks
parentf7af55e67711270286a1addf6a28399982647a62 (diff)
downloadqt4-tools-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.tar.gz
Fixes compile
Diffstat (limited to 'examples/xml/streambookmarks')
-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 729fcf8f23..4472f8a0b6 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 2debadce3d..80f0a28650 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);