I see. tr() was being called at static construction time. That won't work. Your solution looks good. I'll have a look at the rest and see if I can push a fix shortly.

Ted.

On 5/10/20 10:51 AM, Philip Leishman wrote:
QString
LinearParameterPattern::getText(QString propertyName) const
{
     QString text;
     if (m_isDiminuendo) {
         text = QObject::tr("Diminuendo - set %1 falling from max to min");
     } else {
         text = QObject::tr("Crescendo - set %1 rising from min to max");
     }
     return text.arg(propertyName);
}


_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to