rem: IdentityCombo * ic = dynamic_cast<IdentityCombo*>( paramWidget ); assert( ic ); ic->setCurrentIdentity( mParameter );
add: int idx = mParameterList.findIndex( mParameter ); QComboBox *cb = (QComboBox*)paramWidget->child("combo"); Q_ASSERT( cb ); cb->clear(); cb->insertStringList( mParameterList ); if ( idx < 0 ) { cb->insertItem( mParameter ); cb->setCurrentItem( cb->count() - 1 ); } else { cb->setCurrentItem( idx ); } QLineEdit *le = (QLineEdit*)paramWidget->child("ledit"); Q_ASSERT( le ); le->setText( mValue );
context: void KMFilterActionIdentity::setParamWidgetValue( QWidget * paramWidget ) const{  IdentityCombo * ic = dynamic_cast<IdentityCombo*>( paramWidget );  assert( ic );  ic->setCurrentIdentity( mParameter );}