Mercurial > hg > svcore
comparison data/model/PathModel.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 | f5e8f12d2e58 |
children | a1cd5abcb38b |
comparison
equal
deleted
inserted
replaced
928:6a94bb528e9d | 929:59e7fe1b1003 |
---|---|
41 stream << QString("%1<point frame=\"%2\" mapframe=\"%3\" %4/>\n") | 41 stream << QString("%1<point frame=\"%2\" mapframe=\"%3\" %4/>\n") |
42 .arg(indent).arg(frame).arg(mapframe).arg(extraAttributes); | 42 .arg(indent).arg(frame).arg(mapframe).arg(extraAttributes); |
43 } | 43 } |
44 | 44 |
45 QString toDelimitedDataString(QString delimiter, | 45 QString toDelimitedDataString(QString delimiter, |
46 size_t sampleRate) const { | 46 int sampleRate) const { |
47 QStringList list; | 47 QStringList list; |
48 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); | 48 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); |
49 list << QString("%1").arg(mapframe); | 49 list << QString("%1").arg(mapframe); |
50 return list.join(delimiter); | 50 return list.join(delimiter); |
51 } | 51 } |
65 }; | 65 }; |
66 | 66 |
67 class PathModel : public SparseModel<PathPoint> | 67 class PathModel : public SparseModel<PathPoint> |
68 { | 68 { |
69 public: | 69 public: |
70 PathModel(size_t sampleRate, size_t resolution, bool notify = true) : | 70 PathModel(int sampleRate, int resolution, bool notify = true) : |
71 SparseModel<PathPoint>(sampleRate, resolution, notify) { } | 71 SparseModel<PathPoint>(sampleRate, resolution, notify) { } |
72 | 72 |
73 virtual void toXml(QTextStream &out, | 73 virtual void toXml(QTextStream &out, |
74 QString indent = "", | 74 QString indent = "", |
75 QString extraAttributes = "") const | 75 QString extraAttributes = "") const |