Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 607:5b72899d692b
Give a dedicated key to toggling the centre line, and move it out of the overlay level setting -- reducing number of overlay levels to 3. Introduce two distinct vertical scale types (so that we can hide the spectrogram colour scale part easily)
author | Chris Cannam |
---|---|
date | Mon, 30 Jan 2012 16:01:59 +0000 |
parents | 4806715f7a19 |
children | 156a120345ae |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Mon Jan 30 13:24:55 2012 +0000 +++ b/layer/TimeValueLayer.cpp Mon Jan 30 16:01:59 2012 +0000 @@ -1106,7 +1106,7 @@ } int -TimeValueLayer::getVerticalScaleWidth(View *, QPainter &paint) const +TimeValueLayer::getVerticalScaleWidth(View *, bool, QPainter &paint) const { int w = paint.fontMetrics().width("-000.000"); if (m_plotStyle == PlotSegmentation) return w + 20; @@ -1114,7 +1114,7 @@ } void -TimeValueLayer::paintVerticalScale(View *v, QPainter &paint, QRect) const +TimeValueLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const { if (!m_model) return; @@ -1139,7 +1139,7 @@ char buffer[40]; - int w = getVerticalScaleWidth(v, paint); + int w = getVerticalScaleWidth(v, false, paint); int tx = 5;