Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 267:4ed1446ad604
* more on measurement tool -- pull out some logic from pane to layer &c
still more to do
author | Chris Cannam |
---|---|
date | Thu, 21 Jun 2007 16:12:00 +0000 |
parents | 7e9e533f1863 |
children | e954c00cbe55 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Thu Jun 21 14:05:23 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Thu Jun 21 16:12:00 2007 +0000 @@ -2381,7 +2381,7 @@ } float -SpectrogramLayer::getYForFrequency(View *v, float frequency) const +SpectrogramLayer::getYForFrequency(const View *v, float frequency) const { return v->getYForFrequency(frequency, getEffectiveMinFrequency(), @@ -2390,7 +2390,7 @@ } float -SpectrogramLayer::getFrequencyForY(View *v, int y) const +SpectrogramLayer::getFrequencyForY(const View *v, int y) const { return v->getFrequencyForY(y, getEffectiveMinFrequency(), @@ -2469,7 +2469,7 @@ } bool -SpectrogramLayer::getYScaleValue(View *v, int y, +SpectrogramLayer::getYScaleValue(const View *v, int y, float &value, QString &unit) const { value = getFrequencyForY(v, y);