예제 #1
0
void SoundEditWidget::loadContact( const KABC::Addressee &contact )
{
  const KABC::Sound sound = contact.sound();
  if ( sound.isIntern() && !sound.data().isEmpty() ) {
    mHasSound = true;
    mSound = sound.data();
  }

  updateView();
}
예제 #2
0
void SoundEditWidget::storeContact( KABC::Addressee &contact ) const
{
  KABC::Sound sound( contact.sound() );
  sound.setData( mSound );
  contact.setSound( sound );
}