diff 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
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp	Wed Jun 13 13:44:19 2007 +0000
+++ b/layer/SpectrumLayer.cpp	Thu Jun 14 15:20:49 2007 +0000
@@ -323,6 +323,15 @@
     return x;
 }
 
+bool
+SpectrumLayer::getXScaleValue(View *v, int x, 
+                              float &value, QString &unit) const
+{
+    value = getFrequencyForX(x, v->width() - m_xorigins[v]);
+    unit = "Hz";
+    return true;
+}
+
 void
 SpectrumLayer::paintCrosshairs(View *v, QPainter &paint,
                                QPoint cursorPos) const