Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.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 |
---|---|
187 } else if (name == "Scale Units") { | 187 } else if (name == "Scale Units") { |
188 auto model = ModelById::getAs<NoteModel>(m_model); | 188 auto model = ModelById::getAs<NoteModel>(m_model); |
189 if (model) { | 189 if (model) { |
190 model->setScaleUnits | 190 model->setScaleUnits |
191 (UnitDatabase::getInstance()->getUnitById(value)); | 191 (UnitDatabase::getInstance()->getUnitById(value)); |
192 emit modelChanged(); | 192 emit modelChanged(m_model); |
193 } | 193 } |
194 } else { | 194 } else { |
195 return SingleColourLayer::setProperty(name, value); | 195 return SingleColourLayer::setProperty(name, value); |
196 } | 196 } |
197 } | 197 } |