MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Ms::Preference Class Referenceabstract

#include <preferences.h>

Inheritance diagram for Ms::Preference:
Inheritance graph
[legend]

Public Member Functions

 Preference (QVariant defaultValue, QMetaType::Type type, bool showInAdvancedList=true)
 
virtual ~Preference ()
 
QVariant defaultValue () const
 
bool showInAdvancedList () const
 
QMetaType::Type type ()
 
virtual void accept (QString key, PreferenceVisitor &)=0
 

Protected Member Functions

 Preference (QVariant defaultValue)
 

Protected Attributes

QMetaType::Type _type = QMetaType::UnknownType
 

Private Attributes

QVariant _defaultValue = 0
 
bool _showInAdvancedList = true
 

Constructor & Destructor Documentation

◆ Preference() [1/2]

Ms::Preference::Preference ( QVariant  defaultValue)
inlineprotected

◆ Preference() [2/2]

Ms::Preference::Preference ( QVariant  defaultValue,
QMetaType::Type  type,
bool  showInAdvancedList = true 
)

◆ ~Preference()

virtual Ms::Preference::~Preference ( )
inlinevirtual

Member Function Documentation

◆ accept()

virtual void Ms::Preference::accept ( QString  key,
PreferenceVisitor  
)
pure virtual

◆ defaultValue()

QVariant Ms::Preference::defaultValue ( ) const
inline

◆ showInAdvancedList()

bool Ms::Preference::showInAdvancedList ( ) const
inline

◆ type()

QMetaType::Type Ms::Preference::type ( )
inline

Member Data Documentation

◆ _defaultValue

QVariant Ms::Preference::_defaultValue = 0
private

◆ _showInAdvancedList

bool Ms::Preference::_showInAdvancedList = true
private

◆ _type

QMetaType::Type Ms::Preference::_type = QMetaType::UnknownType
protected

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