void AdvPrefsPanel::apply()
{
- QList<ConfigControl *>::Iterator i;
- for( i = controls.begin() ; i != controls.end() ; i++ )
- {
- ConfigControl *c = qobject_cast<ConfigControl *>(*i);
- c->doApply( p_intf );
- }
+ foreach ( ConfigControl *cfg, controls )
+ cfg->doApply();
}
void AdvPrefsPanel::clean()