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

Method loadSettings

src/core/InstrumentSoundShaping.cpp:350–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349
350void InstrumentSoundShaping::loadSettings( const QDomElement & _this )
351{
352 m_filterModel.loadSettings( _this, "ftype" );
353 m_filterCutModel.loadSettings( _this, "fcut" );
354 m_filterResModel.loadSettings( _this, "fres" );
355 m_filterEnabledModel.loadSettings( _this, "fwet" );
356
357 QDomNode node = _this.firstChild();
358 while( !node.isNull() )
359 {
360 if( node.isElement() )
361 {
362 for( int i = 0; i < NumTargets; ++i )
363 {
364 if( node.nodeName() ==
365 m_envLfoParameters[i]->nodeName() +
366 QString( targetNames[i][1] ).
367 toLower() )
368 {
369 m_envLfoParameters[i]->restoreState( node.toElement() );
370 }
371 }
372 }
373 node = node.nextSibling();
374 }
375}
376
377
378

Callers

nothing calls this directly

Calls 4

isNullMethod · 0.80
QStringClass · 0.50
nodeNameMethod · 0.45
restoreStateMethod · 0.45

Tested by

no test coverage detected