Added filtering of articulations.

This commit is contained in:
Bartlomiej Lewandowski 2014-06-26 22:58:57 +02:00 committed by ws
parent cdf9063cbb
commit 08eda25875
2 changed files with 4 additions and 0 deletions

View file

@ -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));

View file

@ -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;
}