comparison data/model/NoteModel.h @ 627:080d8bdd8762

* Fix failure to encode entities in label texts
author Chris Cannam
date Mon, 05 Jul 2010 11:54:19 +0000
parents 1415e35881f6
children e22b6e89a7f7
comparison
equal deleted inserted replaced
626:686fc1703a33 627:080d8bdd8762
54 QString indent = "", 54 QString indent = "",
55 QString extraAttributes = "") const 55 QString extraAttributes = "") const
56 { 56 {
57 stream << 57 stream <<
58 QString("%1<point frame=\"%2\" value=\"%3\" duration=\"%4\" level=\"%5\" label=\"%6\" %7/>\n") 58 QString("%1<point frame=\"%2\" value=\"%3\" duration=\"%4\" level=\"%5\" label=\"%6\" %7/>\n")
59 .arg(indent).arg(frame).arg(value).arg(duration).arg(level).arg(label).arg(extraAttributes); 59 .arg(indent).arg(frame).arg(value).arg(duration).arg(level)
60 .arg(XmlExportable::encodeEntities(label)).arg(extraAttributes);
60 } 61 }
61 62
62 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const 63 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const
63 { 64 {
64 QStringList list; 65 QStringList list;