comparison layer/WaveformLayer.cpp @ 916:94e4952a6774 osx-retina

Start trying to introduce LayerGeometryProvider as proxyable interface for View methods that the Layer wants to use
author Chris Cannam
date Tue, 17 Mar 2015 15:05:25 +0000
parents f6d9f28f37cb
children 4fe7a09be0fe
comparison
equal deleted inserted replaced
915:f6d9f28f37cb 916:94e4952a6774
471 471
472 return float(1.0 / std::max(fabs(range.max()), fabs(range.min()))); 472 return float(1.0 / std::max(fabs(range.max()), fabs(range.min())));
473 } 473 }
474 474
475 void 475 void
476 WaveformLayer::paint(View *v, QPainter &viewPainter, QRect rect) const 476 WaveformLayer::paint(LayerGeometryProvider *v, QPainter &viewPainter, QRect rect) const
477 { 477 {
478 if (!m_model || !m_model->isOK()) { 478 if (!m_model || !m_model->isOK()) {
479 return; 479 return;
480 } 480 }
481 481