Mercurial > hg > svgui
diff view/Pane.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 | 984c1975f1ff |
line wrap: on
line diff
--- a/view/Pane.cpp Wed Oct 17 12:58:45 2007 +0000 +++ b/view/Pane.cpp Thu Oct 18 10:15:07 2007 +0000 @@ -30,6 +30,8 @@ #include <QDragEnterEvent> #include <QDropEvent> #include <QCursor> +#include <QTextStream> + #include <iostream> #include <cmath> @@ -2237,11 +2239,12 @@ emit contextHelpChanged(""); } -QString -Pane::toXmlString(QString indent, QString extraAttributes) const +void +Pane::toXml(QTextStream &stream, + QString indent, QString extraAttributes) const { - return View::toXmlString - (indent, + View::toXml + (stream, indent, QString("type=\"pane\" centreLineVisible=\"%1\" height=\"%2\" %3") .arg(m_centreLineVisible).arg(height()).arg(extraAttributes)); }