comparison layer/TimeValueLayer.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 251dd0abc7b7
children 4fe7a09be0fe
comparison
equal deleted inserted replaced
915:f6d9f28f37cb 916:94e4952a6774
894 return ColourDatabase::getInstance()->getColourIndex 894 return ColourDatabase::getInstance()->getColourIndex
895 (QString(darkbg ? "Bright Green" : "Green")); 895 (QString(darkbg ? "Bright Green" : "Green"));
896 } 896 }
897 897
898 void 898 void
899 TimeValueLayer::paint(View *v, QPainter &paint, QRect rect) const 899 TimeValueLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const
900 { 900 {
901 if (!m_model || !m_model->isOK()) return; 901 if (!m_model || !m_model->isOK()) return;
902 902
903 sv_samplerate_t sampleRate = m_model->getSampleRate(); 903 sv_samplerate_t sampleRate = m_model->getSampleRate();
904 if (!sampleRate) return; 904 if (!sampleRate) return;