Mercurial > hg > svcore
comparison base/EventSeries.cpp @ 1674:69ab62d378bf osc-script
Ensure image & text models get the proper attribute names (which are not the same as the default event ones)
author | Chris Cannam |
---|---|
date | Wed, 27 Mar 2019 16:06:35 +0000 |
parents | 26aa42fd60e9 |
children | f97d64b8674f |
comparison
equal
deleted
inserted
replaced
1673:dfcd05e8bd2f | 1674:69ab62d378bf |
---|---|
483 void | 483 void |
484 EventSeries::toXml(QTextStream &out, | 484 EventSeries::toXml(QTextStream &out, |
485 QString indent, | 485 QString indent, |
486 QString extraAttributes) const | 486 QString extraAttributes) const |
487 { | 487 { |
488 toXml(out, indent, extraAttributes, Event::ExportNameOptions()); | |
489 } | |
490 | |
491 void | |
492 EventSeries::toXml(QTextStream &out, | |
493 QString indent, | |
494 QString extraAttributes, | |
495 Event::ExportNameOptions options) const | |
496 { | |
488 out << indent << QString("<dataset id=\"%1\" %2>\n") | 497 out << indent << QString("<dataset id=\"%1\" %2>\n") |
489 .arg(getObjectExportId(this)) | 498 .arg(getObjectExportId(this)) |
490 .arg(extraAttributes); | 499 .arg(extraAttributes); |
491 | 500 |
492 for (const auto &p: m_events) { | 501 for (const auto &p: m_events) { |
493 p.toXml(out, indent + " "); | 502 p.toXml(out, indent + " ", "", options); |
494 } | 503 } |
495 | 504 |
496 out << indent << "</dataset>\n"; | 505 out << indent << "</dataset>\n"; |
497 } | 506 } |
498 | 507 |