Mercurial > hg > svgui
diff layer/SingleColourLayer.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 | 5c59c433b358 |
children | a55affd7ab6c 0895517bb2d1 |
line wrap: on
line diff
--- a/layer/SingleColourLayer.cpp Wed Oct 17 12:58:45 2007 +0000 +++ b/layer/SingleColourLayer.cpp Thu Oct 18 10:15:07 2007 +0000 @@ -19,6 +19,7 @@ #include <iostream> +#include <QTextStream> #include <QApplication> SingleColourLayer::ColourRefCount @@ -254,8 +255,9 @@ return s; } -QString -SingleColourLayer::toXmlString(QString indent, QString extraAttributes) const +void +SingleColourLayer::toXml(QTextStream &stream, + QString indent, QString extraAttributes) const { QString s; @@ -270,7 +272,7 @@ .arg(colourSpec) .arg(darkbg); - return Layer::toXmlString(indent, extraAttributes + " " + s); + Layer::toXml(stream, indent, extraAttributes + " " + s); } void