comparison layer/TimeInstantLayer.cpp @ 675:3437e0fad7ae imaf_enc

IMAF load code from Jesus Corral Garcia
author Chris Cannam
date Mon, 04 Nov 2013 17:09:36 +0000
parents 3c29f7c1f079
children 97ea68f62c1f
comparison
equal deleted inserted replaced
643:77fa3fdbfc7e 675:3437e0fad7ae
234 RealTime rt = RealTime::frame2RealTime(useFrame, m_model->getSampleRate()); 234 RealTime rt = RealTime::frame2RealTime(useFrame, m_model->getSampleRate());
235 235
236 QString text; 236 QString text;
237 237
238 if (points.begin()->label == "") { 238 if (points.begin()->label == "") {
239 text = QString(tr("Time:\t%1\nNo label")) 239 text = QString(tr("Time:\t%1\nNo label"))
240 .arg(rt.toText(true).c_str()); 240 .arg(rt.toText(true).c_str());
241 } else { 241 } else {
242 text = QString(tr("Time:\t%1\nLabel:\t%2")) 242 text = QString(tr("Time:\t%1\nLabel:\t%2"))
243 .arg(rt.toText(true).c_str()) 243 .arg(rt.toText(true).c_str())
244 .arg(points.begin()->label); 244 .arg(points.begin()->label);
245 } 245 }
246 246
247 pos = QPoint(v->getXForFrame(useFrame), pos.y()); 247 pos = QPoint(v->getXForFrame(useFrame), pos.y());