| 148 | |
| 149 | |
| 150 | void PeakController::loadSettings( const QDomElement & _this ) |
| 151 | { |
| 152 | Controller::loadSettings( _this ); |
| 153 | |
| 154 | int effectId = _this.attribute( "effectId" ).toInt(); |
| 155 | if( m_buggedFile == true ) |
| 156 | { |
| 157 | effectId = m_loadCount++; |
| 158 | } |
| 159 | |
| 160 | PeakControllerEffectVector::Iterator i; |
| 161 | for( i = s_effects.begin(); i != s_effects.end(); ++i ) |
| 162 | { |
| 163 | if( (*i)->m_effectId == effectId ) |
| 164 | { |
| 165 | m_peakEffect = *i; |
| 166 | return; |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | |
| 172 |
nothing calls this directly
no test coverage detected