QVariant Articulation::getProperty(P_ID propertyId) const { switch(propertyId) { case P_DIRECTION: return int(direction()); case P_ARTICULATION_ANCHOR: return int(anchor()); case P_TIME_STRETCH: return timeStretch(); default: return Element::getProperty(propertyId); } }
QVariant Fermata::getProperty(Pid propertyId) const { switch (propertyId) { case Pid::TIME_STRETCH: return timeStretch(); case Pid::PLAY: return play(); default: return Element::getProperty(propertyId); } }
QVariant Articulation::getProperty(P_ID propertyId) const { switch(propertyId) { case P_ID::DIRECTION: return int(direction()); case P_ID::ARTICULATION_ANCHOR: return int(anchor()); case P_ID::TIME_STRETCH: return timeStretch(); case P_ID::ORNAMENT_STYLE: return int(ornamentStyle()); case P_ID::PLAY: return bool(playArticulation()); default: return Element::getProperty(propertyId); } }
void TimeStretchPopup::stretch() { timeStretch(m_newRangeFld->text().toInt(), m_currentStretchType); accept(); }