Added filtering of articulations.
This commit is contained in:
parent
cdf9063cbb
commit
08eda25875
2 changed files with 4 additions and 0 deletions
|
@ -250,6 +250,7 @@ void Articulation::read(XmlReader& e)
|
|||
|
||||
void Articulation::write(Xml& xml) const
|
||||
{
|
||||
if (!xml.canWrite(this)) return;
|
||||
xml.stag("Articulation");
|
||||
if (!_channelName.isEmpty())
|
||||
xml.tagE(QString("channel name=\"%1\"").arg(_channelName));
|
||||
|
|
|
@ -276,6 +276,9 @@ bool SelectionFilter::canSelect(Element* e) const
|
|||
{
|
||||
if (e->type() == Element::Type::DYNAMIC
|
||||
&& !isFiltered(SelectionFilterType::DYNAMIC)) return false;
|
||||
if (e->type() == Element::Type::ARTICULATION
|
||||
&& !isFiltered(SelectionFilterType::ARTICULATION)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue