Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 278:a078aa2932cc
* Fix piano keyboard in spectrum, add pitch labels to frequency displays in
measurement rect (clunkily done) and harmonic cursor in spectrum
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2007 18:47:39 +0000 |
parents | 8acd30ed735c |
children | 47fe0352861e |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Tue Jul 03 12:46:18 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Tue Jul 03 18:47:39 2007 +0000 @@ -2487,7 +2487,13 @@ float fundamental = getFrequencyForY(v, cursorPos.y()); int sw = getVerticalScaleWidth(v, paint); - paint.drawText(sw + 2, cursorPos.y() - 2, QString("%1 Hz").arg(fundamental)); + v->drawVisibleText(paint, + sw + 2, + cursorPos.y() - 2, + QString("%1 Hz").arg(fundamental), + View::OutlinedText); + + //!!! and pitch label int harmonic = 2;