Mercurial > hg > svgui
comparison layer/SliceLayer.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 | 12ab113ca2b1 |
children | 4fe7a09be0fe |
comparison
equal
deleted
inserted
replaced
915:f6d9f28f37cb | 916:94e4952a6774 |
---|---|
311 | 311 |
312 return value / m_gain; | 312 return value / m_gain; |
313 } | 313 } |
314 | 314 |
315 void | 315 void |
316 SliceLayer::paint(View *v, QPainter &paint, QRect rect) const | 316 SliceLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const |
317 { | 317 { |
318 if (!m_sliceableModel || !m_sliceableModel->isOK() || | 318 if (!m_sliceableModel || !m_sliceableModel->isOK() || |
319 !m_sliceableModel->isReady()) return; | 319 !m_sliceableModel->isReady()) return; |
320 | 320 |
321 paint.save(); | 321 paint.save(); |