MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ms::ChangeProperty Class Reference

#include <undo.h>

Inheritance diagram for Ms::ChangeProperty:
Inheritance graph
[legend]
Collaboration diagram for Ms::ChangeProperty:
Collaboration graph
[legend]

Public Member Functions

 ChangeProperty (ScoreElement *e, Pid i, const QVariant &v, PropertyFlags ps=PropertyFlags::NOSTYLE)
 
Pid getId () const
 
ScoreElementgetElement () const
 
QVariant data () const
 
- Public Member Functions inherited from Ms::UndoCommand
virtual ~UndoCommand ()
 
virtual void undo (EditData *)
 
virtual void redo (EditData *)
 
void appendChild (UndoCommand *cmd)
 
UndoCommandremoveChild ()
 
int childCount () const
 
void unwind ()
 
const QList< UndoCommand * > & commands () const
 
virtual void cleanup (bool undo)
 
virtual const char * name () const
 

Protected Member Functions

void flip (EditData *) override
 

Protected Attributes

ScoreElementelement
 
Pid id
 
QVariant property
 
PropertyFlags flags
 

Constructor & Destructor Documentation

◆ ChangeProperty()

Ms::ChangeProperty::ChangeProperty ( ScoreElement e,
Pid  i,
const QVariant &  v,
PropertyFlags  ps = PropertyFlags::NOSTYLE 
)
inline

Member Function Documentation

◆ data()

QVariant Ms::ChangeProperty::data ( ) const
inline

◆ flip()

void Ms::ChangeProperty::flip ( EditData )
overrideprotectedvirtual

Reimplemented from Ms::UndoCommand.

Reimplemented in Ms::ChangeBracketProperty.

◆ getElement()

ScoreElement* Ms::ChangeProperty::getElement ( ) const
inline

◆ getId()

Pid Ms::ChangeProperty::getId ( ) const
inline

Member Data Documentation

◆ element

ScoreElement* Ms::ChangeProperty::element
protected

◆ flags

PropertyFlags Ms::ChangeProperty::flags
protected

◆ id

Pid Ms::ChangeProperty::id
protected

◆ property

QVariant Ms::ChangeProperty::property
protected

The documentation for this class was generated from the following files: