Mercurial > hg > svgui
diff layer/WaveformLayer.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 | e9549ea3f825 |
children | 984c1975f1ff |
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp Wed Oct 17 12:58:45 2007 +0000 +++ b/layer/WaveformLayer.cpp Thu Oct 18 10:15:07 2007 +0000 @@ -23,6 +23,7 @@ #include <QPainter> #include <QPixmap> +#include <QTextStream> #include <iostream> #include <cmath> @@ -1248,8 +1249,9 @@ } } -QString -WaveformLayer::toXmlString(QString indent, QString extraAttributes) const +void +WaveformLayer::toXml(QTextStream &stream, + QString indent, QString extraAttributes) const { QString s; @@ -1274,7 +1276,7 @@ .arg(m_aggressive) .arg(m_autoNormalize); - return SingleColourLayer::toXmlString(indent, extraAttributes + " " + s); + SingleColourLayer::toXml(stream, indent, extraAttributes + " " + s); } void