rem: ((QComboBox*)paramWidget)->clear(); ((QComboBox*)paramWidget)->insertStringList( mParameterList ); ((QComboBox*)paramWidget)->setCurrentItem( idx >= 0 ? idx : 0 );
add: QComboBox *cb = (QComboBox*)paramWidget->child("combo"); Q_ASSERT( cb ); cb->clear(); cb->insertStringList( mParameterList ); cb->setCurrentItem( idx >= 0 ? idx : 0 ); QLineEdit *le = (QLineEdit*)paramWidget->child("ledit"); Q_ASSERT( le ); le->setText( mValue );
context: void KMFilterActionRemoveHeader::setParamWidgetValue( QWidget* paramWidget ) const{  int idx = mParameterList.findIndex( mParameter );  ((QComboBox*)paramWidget)->clear();  ((QComboBox*)paramWidget)->insertStringList( mParameterList );  ((QComboBox*)paramWidget)->setCurrentItem( idx >= 0 ? idx : 0 );}