Mercurial > hg > svgui
diff layer/ImageLayer.cpp @ 316:c0b9eec70639
* Make XmlExportable::toXml the function that is universally overridden (and
pure virtual) instead of toXmlString. Tidies up some classes, notably the
model classes, significantly. Closes #1794561.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 10:15:07 +0000 |
parents | 6de6f78b13a1 |
children | e251c3599ea8 |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Wed Oct 17 12:58:45 2007 +0000 +++ b/layer/ImageLayer.cpp Thu Oct 18 10:15:07 2007 +0000 @@ -29,6 +29,7 @@ #include <QMouseEvent> #include <QInputDialog> #include <QMutexLocker> +#include <QTextStream> #include <iostream> #include <cmath> @@ -944,10 +945,11 @@ } } -QString -ImageLayer::toXmlString(QString indent, QString extraAttributes) const +void +ImageLayer::toXml(QTextStream &stream, + QString indent, QString extraAttributes) const { - return Layer::toXmlString(indent, extraAttributes); + Layer::toXml(stream, indent, extraAttributes); } void