Skip to content

Commit

Permalink
Don't show empty Inspector
Browse files Browse the repository at this point in the history
for tremolos between notes if on tablature or not on half notes.
Also disable Inspector for system- and page breaks
  • Loading branch information
Jojo-Schmitz committed Dec 13, 2020
1 parent ad71d3b commit 4b19f90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mscore/inspector/inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,19 @@ void Inspector::update(Score* s)
case ElementType::LAYOUT_BREAK:
if (toLayoutBreak(element())->layoutBreakType() == LayoutBreak::Type::SECTION)
ie = new InspectorSectionBreak(this);
#if 0 // currently empty and such not needed
else
ie = new InspectorBreak(this);
#endif
break;
case ElementType::BEND:
ie = new InspectorBend(this);
break;
case ElementType::TREMOLO:
ie = new InspectorTremolo(this);
if (toTremolo(element())->customStyleApplicable())
ie = new InspectorTremolo(this);
else
ie = new InspectorElement(this);
break;
case ElementType::TREMOLOBAR:
ie = new InspectorTremoloBar(this);
Expand Down Expand Up @@ -1062,6 +1067,7 @@ InspectorTremolo::InspectorTremolo(QWidget* parent)
mapSignals(iiList, ppList);
}

#if 0 // not needed currently
//---------------------------------------------------------
// setElement
//---------------------------------------------------------
Expand All @@ -1078,6 +1084,7 @@ void InspectorTremolo::setElement()
}
}
}
#endif

//---------------------------------------------------------
// InspectorClef
Expand Down
2 changes: 2 additions & 0 deletions mscore/inspector/inspector.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ class InspectorTremolo : public InspectorElementBase {

public:
InspectorTremolo(QWidget* parent);
#if 0 // not needed currently
virtual void setElement() override;
#endif
};

//---------------------------------------------------------
Expand Down

0 comments on commit 4b19f90

Please sign in to comment.