Mercurial > hg > svcore
comparison data/model/PathModel.h @ 936:0c1d6de8f44b
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:51:16 +0100 |
parents | 59e7fe1b1003 |
children | a1cd5abcb38b |
comparison
equal
deleted
inserted
replaced
917:49618f39ff09 | 936:0c1d6de8f44b |
---|---|
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 |