comparison layer/NoteLayer.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
739 if (!m_model) return false; 739 if (!m_model) return false;
740 return (m_verticalScale == AutoAlignScale); 740 return (m_verticalScale == AutoAlignScale);
741 } 741 }
742 742
743 void 743 void
744 NoteLayer::paint(View *v, QPainter &paint, QRect rect) const 744 NoteLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const
745 { 745 {
746 if (!m_model || !m_model->isOK()) return; 746 if (!m_model || !m_model->isOK()) return;
747 747
748 sv_samplerate_t sampleRate = m_model->getSampleRate(); 748 sv_samplerate_t sampleRate = m_model->getSampleRate();
749 if (!sampleRate) return; 749 if (!sampleRate) return;