| 348 | |
| 349 | |
| 350 | void 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 |
nothing calls this directly
no test coverage detected