comparison layer/TextLayer.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 4a578a360011
children 4fe7a09be0fe
comparison
equal deleted inserted replaced
915:f6d9f28f37cb 916:94e4952a6774
304 int h = v->height(); 304 int h = v->height();
305 return double(h - y) / h; 305 return double(h - y) / h;
306 } 306 }
307 307
308 void 308 void
309 TextLayer::paint(View *v, QPainter &paint, QRect rect) const 309 TextLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const
310 { 310 {
311 if (!m_model || !m_model->isOK()) return; 311 if (!m_model || !m_model->isOK()) return;
312 312
313 sv_samplerate_t sampleRate = m_model->getSampleRate(); 313 sv_samplerate_t sampleRate = m_model->getSampleRate();
314 if (!sampleRate) return; 314 if (!sampleRate) return;