diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-08-19 13:06:15 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-08-19 13:56:09 (GMT) |
commit | 0d9cc367b72d74d709b9a03748db6dd48e126472 (patch) | |
tree | 2cbf41b830c4e14c7454986d49fe2a73b6bb72ad /examples/xml/streambookmarks/xbelwriter.h | |
parent | 332ca73378043970087f843036d02192e3fef50d (diff) | |
download | Qt-0d9cc367b72d74d709b9a03748db6dd48e126472.zip Qt-0d9cc367b72d74d709b9a03748db6dd48e126472.tar.gz Qt-0d9cc367b72d74d709b9a03748db6dd48e126472.tar.bz2 |
Changed the streambookmarks example to use aggregation
QXmlStreamReader and QXmlStreamWriter can be used conveniently without
subclassing, which the example now demonstrates.
Reviewed-by: mae
Reviewed-by: David Boddie
Diffstat (limited to 'examples/xml/streambookmarks/xbelwriter.h')
-rw-r--r-- | examples/xml/streambookmarks/xbelwriter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/xml/streambookmarks/xbelwriter.h b/examples/xml/streambookmarks/xbelwriter.h index 29a8b04..b74d015 100644 --- a/examples/xml/streambookmarks/xbelwriter.h +++ b/examples/xml/streambookmarks/xbelwriter.h @@ -50,7 +50,7 @@ class QTreeWidgetItem; QT_END_NAMESPACE //! [0] -class XbelWriter : public QXmlStreamWriter +class XbelWriter { public: XbelWriter(QTreeWidget *treeWidget); @@ -58,6 +58,7 @@ public: private: void writeItem(QTreeWidgetItem *item); + QXmlStreamWriter xml; QTreeWidget *treeWidget; }; //! [0] |