Mercurial > hg > svcore
diff base/Event.h @ 1794:71e97de5053f
Merge from branch time-frequency-boxes
author | Chris Cannam |
---|---|
date | Wed, 25 Sep 2019 13:47:46 +0100 |
parents | baafe1bb7e51 |
children | 8c34ecba70df |
line wrap: on
line diff
--- a/base/Event.h Fri Sep 20 11:35:14 2019 +0100 +++ b/base/Event.h Wed Sep 25 13:47:46 2019 +0100 @@ -259,10 +259,12 @@ struct ExportNameOptions { ExportNameOptions() : - valueAtttributeName("value"), + valueAttributeName("value"), + levelAttributeName("level"), uriAttributeName("uri") { } - QString valueAtttributeName; + QString valueAttributeName; + QString levelAttributeName; QString uriAttributeName; }; @@ -275,13 +277,15 @@ stream << indent << QString("<point frame=\"%1\" ").arg(m_frame); if (m_haveValue) { stream << QString("%1=\"%2\" ") - .arg(opts.valueAtttributeName).arg(m_value); + .arg(opts.valueAttributeName).arg(m_value); } if (m_haveDuration) { stream << QString("duration=\"%1\" ").arg(m_duration); } if (m_haveLevel) { - stream << QString("level=\"%1\" ").arg(m_level); + stream << QString("%1=\"%2\" ") + .arg(opts.levelAttributeName) + .arg(m_level); } if (m_haveReferenceFrame) { stream << QString("referenceFrame=\"%1\" ")