Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1469:11a150e65ee1 | 1470:696e569ff21b |
---|---|
63 m_scaleMaximum(0) | 63 m_scaleMaximum(0) |
64 { | 64 { |
65 SVDEBUG << "constructed NoteLayer" << endl; | 65 SVDEBUG << "constructed NoteLayer" << endl; |
66 } | 66 } |
67 | 67 |
68 void | 68 int |
69 NoteLayer::setModel(NoteModel *model) | 69 NoteLayer::getCompletion(LayerGeometryProvider *) const |
70 { | |
71 auto model = ModelById::get(m_model); | |
72 if (model) return model->getCompletion(); | |
73 else return 0; | |
74 } | |
75 | |
76 void | |
77 NoteLayer::setModel(ModelId model) | |
70 { | 78 { |
71 if (m_model == model) return; | 79 if (m_model == model) return; |
72 m_model = model; | 80 m_model = model; |
73 | 81 |
74 connectSignals(m_model); | 82 connectSignals(m_model); |