Merge pull request #2173 from mgavioli/Fix#71076_TAB_make_flag_symbol_unselectable

Fix #71076 - TABs: Make flag symbols unselectable
This commit is contained in:
Nicolas Froment 2015-08-18 11:30:04 +02:00
commit d1ee5a2a97

View file

@ -821,7 +821,7 @@ qreal StaffType::physStringToYOffset(int strg) const
TabDurationSymbol::TabDurationSymbol(Score* s)
: Element(s)
{
setFlags(ElementFlag::MOVABLE | ElementFlag::SELECTABLE);
setFlags(flags() & ~(ElementFlag::MOVABLE | ElementFlag::SELECTABLE) );
setGenerated(true);
_tab = 0;
_text = QString();
@ -830,7 +830,7 @@ TabDurationSymbol::TabDurationSymbol(Score* s)
TabDurationSymbol::TabDurationSymbol(Score* s, StaffType* tab, TDuration::DurationType type, int dots)
: Element(s)
{
setFlags(ElementFlag::MOVABLE | ElementFlag::SELECTABLE);
setFlags(flags() & ~(ElementFlag::MOVABLE | ElementFlag::SELECTABLE) );
setGenerated(true);
setDuration(type, dots, tab);
}