comparison layer/NoteLayer.cpp @ 1481:e540aa5d89cd by-id

Update for removal of (public) getId from Model
author Chris Cannam
date Fri, 05 Jul 2019 15:34:50 +0100
parents f2525e6cbdf1
children 0fa49a6ce64f
comparison
equal deleted inserted replaced
1480:232262e38051 1481:e540aa5d89cd
191 } else if (name == "Scale Units") { 191 } else if (name == "Scale Units") {
192 auto model = ModelById::getAs<NoteModel>(m_model); 192 auto model = ModelById::getAs<NoteModel>(m_model);
193 if (model) { 193 if (model) {
194 model->setScaleUnits 194 model->setScaleUnits
195 (UnitDatabase::getInstance()->getUnitById(value)); 195 (UnitDatabase::getInstance()->getUnitById(value));
196 emit modelChanged(); 196 emit modelChanged(m_model);
197 } 197 }
198 } else { 198 } else {
199 return SingleColourLayer::setProperty(name, value); 199 return SingleColourLayer::setProperty(name, value);
200 } 200 }
201 } 201 }