changeset 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 61bf55e80080
children c08c312b2399
files document/Document.cpp document/Document.h
diffstat 2 files changed, 1 insertions(+), 14 deletions(-) [+]
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;
-}
-
--- a/document/Document.h	Thu Oct 18 09:36:05 2007 +0000
+++ b/document/Document.h	Thu Oct 18 10:15:07 2007 +0000
@@ -190,8 +190,6 @@
     void removeLayerFromView(View *, Layer *);
 
     void toXml(QTextStream &, QString indent, QString extraAttributes) const;
-    QString toXmlString(QString indent, QString extraAttributes) const;
-
 signals:
     void layerAdded(Layer *);
     void layerRemoved(Layer *);