comparison data/model/TextModel.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 69ab62d378bf
children 0d89abd631ac
comparison
equal deleted inserted replaced
1676:3b51df7695a4 1677:f97d64b8674f
246 QString("type=\"sparse\" dimensions=\"2\" resolution=\"%1\" " 246 QString("type=\"sparse\" dimensions=\"2\" resolution=\"%1\" "
247 "notifyOnAdd=\"%2\" dataset=\"%3\" subtype=\"text\" %4") 247 "notifyOnAdd=\"%2\" dataset=\"%3\" subtype=\"text\" %4")
248 .arg(m_resolution) 248 .arg(m_resolution)
249 .arg("true") // always true after model reaches 100% - 249 .arg("true") // always true after model reaches 100% -
250 // subsequent events are always notified 250 // subsequent events are always notified
251 .arg(getObjectExportId(&m_events)) 251 .arg(m_events.getExportId())
252 .arg(extraAttributes)); 252 .arg(extraAttributes));
253 253
254 Event::ExportNameOptions options; 254 Event::ExportNameOptions options;
255 options.valueAtttributeName = "height"; 255 options.valueAtttributeName = "height";
256 256