Mercurial > hg > svcore
comparison data/model/TextModel.h @ 929:59e7fe1b1003 warnfix_no_size_t
Unsigned removals and warning fixes in data/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:33:42 +0100 |
parents | e22b6e89a7f7 |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
928:6a94bb528e9d | 929:59e7fe1b1003 |
---|---|
49 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n") | 49 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n") |
50 .arg(indent).arg(frame).arg(height) | 50 .arg(indent).arg(frame).arg(height) |
51 .arg(encodeEntities(label)).arg(extraAttributes); | 51 .arg(encodeEntities(label)).arg(extraAttributes); |
52 } | 52 } |
53 | 53 |
54 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const | 54 QString toDelimitedDataString(QString delimiter, int sampleRate) const |
55 { | 55 { |
56 QStringList list; | 56 QStringList list; |
57 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); | 57 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); |
58 list << QString("%1").arg(height); | 58 list << QString("%1").arg(height); |
59 if (label != "") list << label; | 59 if (label != "") list << label; |
83 class TextModel : public SparseModel<TextPoint> | 83 class TextModel : public SparseModel<TextPoint> |
84 { | 84 { |
85 Q_OBJECT | 85 Q_OBJECT |
86 | 86 |
87 public: | 87 public: |
88 TextModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) : | 88 TextModel(int sampleRate, int resolution, bool notifyOnAdd = true) : |
89 SparseModel<TextPoint>(sampleRate, resolution, notifyOnAdd) | 89 SparseModel<TextPoint>(sampleRate, resolution, notifyOnAdd) |
90 { } | 90 { } |
91 | 91 |
92 virtual void toXml(QTextStream &out, | 92 virtual void toXml(QTextStream &out, |
93 QString indent = "", | 93 QString indent = "", |