summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-08-19 00:09:49 (GMT)
committerBill King <bill.king@nokia.com>2009-08-19 00:10:46 (GMT)
commitaf98f27a847688e53ab1d34b4a9c04bdc63fe3e1 (patch)
tree6c79efab4bf157aa4468ba6c88e34b0b8e2bde6a
parentf7af55e67711270286a1addf6a28399982647a62 (diff)
downloadQt-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.zip
Qt-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.tar.gz
Qt-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.tar.bz2
Fixes compile
-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);