Mercurial > hg > svcore
comparison data/model/SparseTimeValueModel.h @ 603:e43368ec5ff0
* Fix session save bug reported by Jeff Smith (entities not encoded in
label attributes for points in layers)
author | Chris Cannam |
---|---|
date | Tue, 08 Sep 2009 11:27:26 +0000 |
parents | f5e8f12d2e58 |
children | 1415e35881f6 |
comparison
equal
deleted
inserted
replaced
602:02d9664906e8 | 603:e43368ec5ff0 |
---|---|
43 | 43 |
44 void toXml(QTextStream &stream, QString indent = "", | 44 void toXml(QTextStream &stream, QString indent = "", |
45 QString extraAttributes = "") const | 45 QString extraAttributes = "") const |
46 { | 46 { |
47 stream << QString("%1<point frame=\"%2\" value=\"%3\" label=\"%4\" %5/>\n") | 47 stream << QString("%1<point frame=\"%2\" value=\"%3\" label=\"%4\" %5/>\n") |
48 .arg(indent).arg(frame).arg(value).arg(label).arg(extraAttributes); | 48 .arg(indent).arg(frame).arg(value).arg(XmlExportable::encodeEntities(label)) |
49 .arg(extraAttributes); | |
49 } | 50 } |
50 | 51 |
51 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const | 52 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const |
52 { | 53 { |
53 QStringList list; | 54 QStringList list; |