Logo Search packages:      
Sourcecode: kmess version File versions  Download package

void EmoticonsPage::saveSettings ( Account account  ) 

Save the settings to the account object

Parameters:
account Account instance which settings will be saved

Definition at line 249 of file emoticonspage.cpp.

References EmoticonManager::instance(), EmoticonManager::replaceCustomTheme(), EmoticonTheme::saveTheme(), and Account::setEmoticonStyle().

{
  // Save the changes we've made
  emoticonTheme_->saveTheme();

  // Enable emoticon styles only if there's one selected (the list may be empty)
  if( emoticonThemesList_->currentItem() )
  {
    account->setEmoticonStyle( emoticonThemesList_->currentItem()->text() );
  }
  else
  {
    account->setEmoticonStyle( QString() );
  }

  // Apply the changes to the current account, too
  if( accountHandle_ == CurrentAccount::instance()->getHandle() )
  {
    EmoticonManager::instance()->replaceCustomTheme( emoticonTheme_ );
  }
}


Generated by  Doxygen 1.6.0   Back to index