comparison data/model/TextModel.h @ 338:f14e2f7b24f7

* More space and time efficient AlignmentModel
author Chris Cannam
date Thu, 22 Nov 2007 11:09:26 +0000
parents 7a4bd2c8585c
children 700cd3350391
comparison
equal deleted inserted replaced
336:5cd7f6d10d47 338:f14e2f7b24f7
36 int getDimensions() const { return 2; } 36 int getDimensions() const { return 2; }
37 37
38 long frame; 38 long frame;
39 float height; 39 float height;
40 QString label; 40 QString label;
41
42 QString getLabel() const { return label; }
41 43
42 void toXml(QTextStream &stream, QString indent = "", 44 void toXml(QTextStream &stream, QString indent = "",
43 QString extraAttributes = "") const 45 QString extraAttributes = "") const
44 { 46 {
45 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n") 47 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n")