File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1620,6 +1620,15 @@ void Element::undoSetColor(const QColor& c)
1620
1620
score ()->undoChangeProperty (this , P_ID::COLOR, c);
1621
1621
}
1622
1622
1623
+ // ---------------------------------------------------------
1624
+ // undoSetVisible
1625
+ // ---------------------------------------------------------
1626
+
1627
+ void Element::undoSetVisible (bool v)
1628
+ {
1629
+ score ()->undoChangeProperty (this , P_ID::VISIBLE, v);
1630
+ }
1631
+
1623
1632
// ---------------------------------------------------------
1624
1633
// bbox() function for scripts
1625
1634
//
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ class Element : public QObject, public ScoreElement {
175
175
Q_PROPERTY (int track READ track WRITE setTrack)
176
176
Q_PROPERTY (Ms::Element::Type type READ type)
177
177
Q_PROPERTY (QPointF userOff READ scriptUserOff WRITE scriptSetUserOff)
178
- Q_PROPERTY (bool visible READ visible WRITE setVisible )
178
+ Q_PROPERTY (bool visible READ visible WRITE undoSetVisible )
179
179
180
180
Element* _parent { 0 };
181
181
@@ -465,6 +465,7 @@ class Element : public QObject, public ScoreElement {
465
465
QColor curColor (const Element* proxy) const ;
466
466
virtual void setColor (const QColor& c) { _color = c; }
467
467
void undoSetColor (const QColor& c);
468
+ void undoSetVisible (bool v);
468
469
469
470
static Element::Type readType (XmlReader& node, QPointF*, Fraction*);
470
471
You can’t perform that action at this time.
0 commit comments