comparison layer/TimeInstantLayer.cpp @ 2:77dad696d740

* Add some tool icons (mostly nabbed from the Gimp) * Minor fixes
author Chris Cannam
date Tue, 10 Jan 2006 17:37:43 +0000
parents 2a4f26e85b4c
children 37b110168acf
comparison
equal deleted inserted replaced
1:ab83c415a6cd 2:77dad696d740
206 } 206 }
207 207
208 long useFrame = points.begin()->frame; 208 long useFrame = points.begin()->frame;
209 209
210 RealTime rt = RealTime::frame2RealTime(useFrame, m_model->getSampleRate()); 210 RealTime rt = RealTime::frame2RealTime(useFrame, m_model->getSampleRate());
211 QString timeText = QString("%1").arg(rt.toText(true).c_str()); 211 QString timeText = QString(tr("Time %1")).arg(rt.toText(true).c_str());
212 212
213 int timewidth = metrics.width(timeText); 213 int timewidth = metrics.width(timeText);
214 int labelwidth = metrics.width(points.begin()->label); 214 int labelwidth = metrics.width(points.begin()->label);
215 215
216 int boxheight = metrics.height() * 2 + 3; 216 int boxheight = metrics.height() * 2 + 3;