Mercurial > hg > svcore
comparison data/model/NoteModel.h @ 1677:f97d64b8674f single-point
Make XmlExportables store their export IDs and always obtain a new one, avoiding reuse when an object is allocated at the same heap location as a previous one. This makes the ID system stable enough to be used in the export tests.
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 11:55:02 +0000 |
parents | 82d03c9661f9 |
children | 0d89abd631ac |
comparison
equal
deleted
inserted
replaced
1676:3b51df7695a4 | 1677:f97d64b8674f |
---|---|
371 "valueQuantization=\"%5\" minimum=\"%6\" maximum=\"%7\" " | 371 "valueQuantization=\"%5\" minimum=\"%6\" maximum=\"%7\" " |
372 "units=\"%8\" %9") | 372 "units=\"%8\" %9") |
373 .arg(m_resolution) | 373 .arg(m_resolution) |
374 .arg("true") // always true after model reaches 100% - | 374 .arg("true") // always true after model reaches 100% - |
375 // subsequent events are always notified | 375 // subsequent events are always notified |
376 .arg(getObjectExportId(&m_events)) | 376 .arg(m_events.getExportId()) |
377 .arg(m_subtype == FLEXI_NOTE ? "flexinote" : "note") | 377 .arg(m_subtype == FLEXI_NOTE ? "flexinote" : "note") |
378 .arg(m_valueQuantization) | 378 .arg(m_valueQuantization) |
379 .arg(m_valueMinimum) | 379 .arg(m_valueMinimum) |
380 .arg(m_valueMaximum) | 380 .arg(m_valueMaximum) |
381 .arg(encodeEntities(m_units)) | 381 .arg(encodeEntities(m_units)) |