MCPcopy Create free account
hub / github.com/LMMS/lmms / saveSettings

Method saveSettings

src/core/EffectChain.cpp:54–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54void EffectChain::saveSettings( QDomDocument & _doc, QDomElement & _this )
55{
56 m_enabledModel.saveSettings( _doc, _this, "enabled" );
57 _this.setAttribute( "numofeffects", m_effects.count() );
58
59 for( Effect* effect : m_effects)
60 {
61 if( DummyEffect* dummy = dynamic_cast<DummyEffect*>(effect) )
62 {
63 _this.appendChild( dummy->originalPluginData() );
64 }
65 else
66 {
67 QDomElement ef = effect->saveState( _doc, _this );
68 ef.setAttribute( "name", QString::fromUtf8( effect->descriptor()->name ) );
69 ef.appendChild( effect->key().saveXML( _doc ) );
70 }
71 }
72}
73
74
75

Callers

nothing calls this directly

Calls 4

countMethod · 0.80
keyMethod · 0.80
saveStateMethod · 0.45
saveXMLMethod · 0.45

Tested by

no test coverage detected