comparison layer/SpectrumLayer.cpp @ 260:6d113226bb4c

* a bit more work on measurement tool mode * use arrow cursors on thumbwheels and panner in pane HUD
author Chris Cannam
date Thu, 14 Jun 2007 15:20:49 +0000
parents a2ae3d93c645
children 7e9e533f1863
comparison
equal deleted inserted replaced
259:2d891e02c5ce 260:6d113226bb4c
321 } 321 }
322 322
323 return x; 323 return x;
324 } 324 }
325 325
326 bool
327 SpectrumLayer::getXScaleValue(View *v, int x,
328 float &value, QString &unit) const
329 {
330 value = getFrequencyForX(x, v->width() - m_xorigins[v]);
331 unit = "Hz";
332 return true;
333 }
334
326 void 335 void
327 SpectrumLayer::paintCrosshairs(View *v, QPainter &paint, 336 SpectrumLayer::paintCrosshairs(View *v, QPainter &paint,
328 QPoint cursorPos) const 337 QPoint cursorPos) const
329 { 338 {
330 paint.save(); 339 paint.save();