comparison layer/ImageLayer.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 b66fb15de477
children 4fe7a09be0fe
comparison
equal deleted inserted replaced
915:f6d9f28f37cb 916:94e4952a6774
278 frame = snapped; 278 frame = snapped;
279 return found; 279 return found;
280 } 280 }
281 281
282 void 282 void
283 ImageLayer::paint(View *v, QPainter &paint, QRect rect) const 283 ImageLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const
284 { 284 {
285 if (!m_model || !m_model->isOK()) return; 285 if (!m_model || !m_model->isOK()) return;
286 286
287 sv_samplerate_t sampleRate = m_model->getSampleRate(); 287 sv_samplerate_t sampleRate = m_model->getSampleRate();
288 if (!sampleRate) return; 288 if (!sampleRate) return;