comparison layer/TimeValueLayer.cpp @ 697:26b1ffe412f9

Ensure new piano scales only appear when not auto-aligning
author Chris Cannam
date Wed, 04 Dec 2013 12:17:44 +0000
parents 5674950ed82a
children ad7623c39396
comparison
equal deleted inserted replaced
693:81c4c44ecc10 697:26b1ffe412f9
1196 } 1196 }
1197 1197
1198 int 1198 int
1199 TimeValueLayer::getVerticalScaleWidth(View *, bool, QPainter &paint) const 1199 TimeValueLayer::getVerticalScaleWidth(View *, bool, QPainter &paint) const
1200 { 1200 {
1201 if (!m_model || shouldAutoAlign()) return 0;
1201 int w = paint.fontMetrics().width("-000.000"); 1202 int w = paint.fontMetrics().width("-000.000");
1202 if (m_plotStyle == PlotSegmentation) return w + 20; 1203 if (m_plotStyle == PlotSegmentation) return w + 20;
1203 else return w + 10; 1204 else return w + 10;
1204 } 1205 }
1205 1206