Mercurial > hg > svgui
comparison layer/RegionLayer.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 |
---|---|
864 return ColourDatabase::getInstance()->getColourIndex | 864 return ColourDatabase::getInstance()->getColourIndex |
865 (QString(darkbg ? "Bright Blue" : "Blue")); | 865 (QString(darkbg ? "Bright Blue" : "Blue")); |
866 } | 866 } |
867 | 867 |
868 void | 868 void |
869 RegionLayer::paint(View *v, QPainter &paint, QRect rect) const | 869 RegionLayer::paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const |
870 { | 870 { |
871 if (!m_model || !m_model->isOK()) return; | 871 if (!m_model || !m_model->isOK()) return; |
872 | 872 |
873 sv_samplerate_t sampleRate = m_model->getSampleRate(); | 873 sv_samplerate_t sampleRate = m_model->getSampleRate(); |
874 if (!sampleRate) return; | 874 if (!sampleRate) return; |