rem: int type = 0;  for ( int i = 0; i < mGroup->count(); ++i ) { QCheckBox *box = (QCheckBox*)mGroup->find( i ); if ( box->isChecked() ) type += mTypeList[ i ]; }  if ( mPreferredBox->isChecked() ) type = type | KABC::PhoneNumber::Pref; else type = type & ~KABC::PhoneNumber::Pref;  return type;
add: return mType;
context: int PhoneTypeDialog::type() const{  int type = 0;  for ( int i = 0; i < mGroup->count(); ++i ) {    QCheckBox *box = (QCheckBox*)mGroup->find( i );    if ( box->isChecked() )      type += mTypeList[ i ];  }  if ( mPreferredBox->isChecked() )    type = type | KABC::PhoneNumber::Pref;  else    type = type & ~KABC::PhoneNumber::Pref;  return type;}