Mercurial > hg > svgui
comparison layer/SpectrumLayer.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 |
---|---|
648 | 648 |
649 return description; | 649 return description; |
650 } | 650 } |
651 | 651 |
652 void | 652 void |
653 SpectrumLayer::paint(View *v, QPainter &paint, QRect rect) const | 653 SpectrumLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const |
654 { | 654 { |
655 if (!m_originModel || !m_originModel->isOK() || | 655 if (!m_originModel || !m_originModel->isOK() || |
656 !m_originModel->isReady()) { | 656 !m_originModel->isReady()) { |
657 SVDEBUG << "SpectrumLayer::paint: no origin model, or origin model not OK or not ready" << endl; | 657 SVDEBUG << "SpectrumLayer::paint: no origin model, or origin model not OK or not ready" << endl; |
658 return; | 658 return; |