diff 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
line wrap: on
line diff
--- a/data/model/Model.cpp	Mon Aug 13 14:51:35 2007 +0000
+++ b/data/model/Model.cpp	Tue Aug 14 13:58:53 2007 +0000
@@ -51,16 +51,11 @@
 Model::toXmlString(QString indent, QString extraAttributes) const
 {
     QString s;
-    
-    s += indent;
 
-    s += QString("<model id=\"%1\" name=\"%2\" sampleRate=\"%3\" start=\"%4\" end=\"%5\" %6/>\n")
-	.arg(getObjectExportId(this))
-	.arg(encodeEntities(objectName()))
-	.arg(getSampleRate())
-	.arg(getStartFrame())
-	.arg(getEndFrame())
-	.arg(extraAttributes);
+    {
+        QTextStream out(&s);
+        toXml(out, indent, extraAttributes);
+    }
 
     return s;
 }