comparison data/model/ImageModel.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 a1cd5abcb38b
comparison
equal deleted inserted replaced
928:6a94bb528e9d 929:59e7fe1b1003
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