Mercurial > hg > svcore
comparison data/model/TextModel.h @ 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 | 3a13b0d4934e |
children | 726b32522e3f |
comparison
equal
deleted
inserted
replaced
287:557e00480279 | 288:7b96b3bd4bae |
---|---|
79 public: | 79 public: |
80 TextModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) : | 80 TextModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) : |
81 SparseModel<TextPoint>(sampleRate, resolution, notifyOnAdd) | 81 SparseModel<TextPoint>(sampleRate, resolution, notifyOnAdd) |
82 { } | 82 { } |
83 | 83 |
84 virtual QString toXmlString(QString indent = "", | 84 virtual void toXml(QTextStream &out, |
85 QString extraAttributes = "") const | 85 QString indent = "", |
86 QString extraAttributes = "") const | |
86 { | 87 { |
87 return SparseModel<TextPoint>::toXmlString | 88 SparseModel<TextPoint>::toXml |
88 (indent, | 89 (out, |
90 indent, | |
89 QString("%1 subtype=\"text\"") | 91 QString("%1 subtype=\"text\"") |
90 .arg(extraAttributes)); | 92 .arg(extraAttributes)); |
91 } | 93 } |
92 }; | 94 }; |
93 | 95 |