Mercurial > hg > sonic-visualiser
diff document/Document.cpp @ 196:29c356da4ae4
* 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 | ebd906049fb6 |
children | de783e8ee5f0 |
line wrap: on
line diff
--- a/document/Document.cpp Thu Oct 18 09:36:05 2007 +0000 +++ b/document/Document.cpp Thu Oct 18 10:15:07 2007 +0000 @@ -27,6 +27,7 @@ #include "base/PlayParameters.h" #include "transform/TransformFactory.h" #include <QApplication> +#include <QTextStream> #include <iostream> //!!! still need to handle command history, documentRestored/documentModified @@ -862,16 +863,4 @@ out << indent + "</data>\n"; } -QString -Document::toXmlString(QString indent, QString extraAttributes) const -{ - QString s; - { - QTextStream out(&s); - toXml(out, indent, extraAttributes); - } - - return s; -} -