Mercurial > hg > svcore
diff data/model/TextModel.h @ 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 | 82d03c9661f9 |
children | f97d64b8674f |
line wrap: on
line diff
--- a/data/model/TextModel.h Wed Mar 27 14:15:21 2019 +0000 +++ b/data/model/TextModel.h Wed Mar 27 16:06:35 2019 +0000 @@ -137,7 +137,7 @@ void add(Event e) override { { QMutexLocker locker(&m_mutex); - m_events.add(e.withoutDuration()); + m_events.add(e.withoutDuration().withoutLevel()); } m_notifier.update(e.getFrame(), m_resolution); @@ -250,8 +250,11 @@ // subsequent events are always notified .arg(getObjectExportId(&m_events)) .arg(extraAttributes)); + + Event::ExportNameOptions options; + options.valueAtttributeName = "height"; - m_events.toXml(out, indent, QString("dimensions=\"2\"")); + m_events.toXml(out, indent, QString("dimensions=\"2\""), options); } protected: