Mercurial > hg > svgui
diff layer/NoteLayer.cpp @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | 5b9692768beb |
children | f2525e6cbdf1 |
line wrap: on
line diff
--- a/layer/NoteLayer.cpp Thu Jun 27 13:16:25 2019 +0100 +++ b/layer/NoteLayer.cpp Fri Jun 28 17:37:22 2019 +0100 @@ -65,8 +65,16 @@ SVDEBUG << "constructed NoteLayer" << endl; } +int +NoteLayer::getCompletion(LayerGeometryProvider *) const +{ + auto model = ModelById::get(m_model); + if (model) return model->getCompletion(); + else return 0; +} + void -NoteLayer::setModel(NoteModel *model) +NoteLayer::setModel(ModelId model) { if (m_model == model) return; m_model = model;