comparison data/model/TextModel.h @ 318:7a4bd2c8585c

* Some export fixes, and avoid clipping on resampling on import
author Chris Cannam
date Mon, 22 Oct 2007 09:45:35 +0000
parents 70a232b1f12a
children f14e2f7b24f7 6f6ab834449d
comparison
equal deleted inserted replaced
317:c324d410b096 318:7a4bd2c8585c
50 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const 50 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const
51 { 51 {
52 QStringList list; 52 QStringList list;
53 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 53 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
54 list << QString("%1").arg(height); 54 list << QString("%1").arg(height);
55 list << label; 55 if (label != "") list << label;
56 return list.join(delimiter); 56 return list.join(delimiter);
57 } 57 }
58 58
59 struct Comparator { 59 struct Comparator {
60 bool operator()(const TextPoint &p1, 60 bool operator()(const TextPoint &p1,