comparison data/model/ImageModel.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
53 .arg(encodeEntities(image)) 53 .arg(encodeEntities(image))
54 .arg(encodeEntities(label)) 54 .arg(encodeEntities(label))
55 .arg(extraAttributes); 55 .arg(extraAttributes);
56 } 56 }
57 57
58 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const 58 QString toDelimitedDataString(QString delimiter, int sampleRate) const
59 { 59 {
60 QStringList list; 60 QStringList list;
61 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 61 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
62 list << image; 62 list << image;
63 if (label != "") list << label; 63 if (label != "") list << label;
87 class ImageModel : public SparseModel<ImagePoint> 87 class ImageModel : public SparseModel<ImagePoint>
88 { 88 {
89 Q_OBJECT 89 Q_OBJECT
90 90
91 public: 91 public:
92 ImageModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) : 92 ImageModel(int sampleRate, int resolution, bool notifyOnAdd = true) :
93 SparseModel<ImagePoint>(sampleRate, resolution, notifyOnAdd) 93 SparseModel<ImagePoint>(sampleRate, resolution, notifyOnAdd)
94 { } 94 { }
95 95
96 QString getTypeName() const { return tr("Image"); } 96 QString getTypeName() const { return tr("Image"); }
97 97