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

Method loadSettings

src/core/Effect.cpp:91–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void Effect::loadSettings( const QDomElement & _this )
92{
93 m_enabledModel.loadSettings( _this, "on" );
94 m_wetDryModel.loadSettings( _this, "wet" );
95 m_autoQuitModel.loadSettings( _this, "autoquit" );
96 m_gateModel.loadSettings( _this, "gate" );
97
98 QDomNode node = _this.firstChild();
99 while( !node.isNull() )
100 {
101 if( node.isElement() )
102 {
103 if( controls()->nodeName() == node.nodeName() )
104 {
105 controls()->restoreState( node.toElement() );
106 }
107 }
108 node = node.nextSibling();
109 }
110}
111
112
113

Callers

nothing calls this directly

Calls 4

controlsFunction · 0.85
isNullMethod · 0.80
nodeNameMethod · 0.45
restoreStateMethod · 0.45

Tested by

no test coverage detected