comparison data/model/Model.cpp @ 288:7b96b3bd4bae

* Fix #1757772 tempo, dynamic related plug-ins bug -- make auto-align only auto-align if there is a unit involved * Fix #1755366 text layer bug in retrieved session * Fix input model selection in plugin parameter dialog (was being ignored) * Use lighter background than the standard widget one for panes (assuming the widget background is light but not white) -- similarly darker if dark * Fix colour reference counting in loaded session in SingleColourLayer * Reset overview pane colour when switching dark background on or off
author Chris Cannam
date Tue, 14 Aug 2007 13:58:53 +0000
parents 3e6fee4e4257
children 70a232b1f12a
comparison
equal deleted inserted replaced
287:557e00480279 288:7b96b3bd4bae
49 49
50 QString 50 QString
51 Model::toXmlString(QString indent, QString extraAttributes) const 51 Model::toXmlString(QString indent, QString extraAttributes) const
52 { 52 {
53 QString s; 53 QString s;
54
55 s += indent;
56 54
57 s += QString("<model id=\"%1\" name=\"%2\" sampleRate=\"%3\" start=\"%4\" end=\"%5\" %6/>\n") 55 {
58 .arg(getObjectExportId(this)) 56 QTextStream out(&s);
59 .arg(encodeEntities(objectName())) 57 toXml(out, indent, extraAttributes);
60 .arg(getSampleRate()) 58 }
61 .arg(getStartFrame())
62 .arg(getEndFrame())
63 .arg(extraAttributes);
64 59
65 return s; 60 return s;
66 } 61 }
67 62