Mercurial > hg > svcore
comparison data/model/SparseValueModel.h @ 314:70a232b1f12a
* 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 | 73537d900d4b |
children | 7a4bd2c8585c |
comparison
equal
deleted
inserted
replaced
313:29485aa03da4 | 314:70a232b1f12a |
---|---|
108 emit modelChanged(); | 108 emit modelChanged(); |
109 } | 109 } |
110 } | 110 } |
111 } | 111 } |
112 | 112 |
113 virtual QString toXmlString(QString indent = "", | 113 virtual void toXml(QTextStream &stream, QString indent = "", |
114 QString extraAttributes = "") const | 114 QString extraAttributes = "") const |
115 { | 115 { |
116 return SparseModel<PointType>::toXmlString | 116 SparseModel<PointType>::toXml |
117 (indent, | 117 (stream, indent, |
118 QString("%1 minimum=\"%2\" maximum=\"%3\" units=\"%4\"") | 118 QString("%1 minimum=\"%2\" maximum=\"%3\" units=\"%4\"") |
119 .arg(extraAttributes).arg(m_valueMinimum).arg(m_valueMaximum) | 119 .arg(extraAttributes).arg(m_valueMinimum).arg(m_valueMaximum) |
120 .arg(this->encodeEntities(m_units))); | 120 .arg(this->encodeEntities(m_units))); |
121 } | 121 } |
122 | 122 |