Logo Search packages:      
Sourcecode: kmess version File versions

void AccountsManagerPage::readProperties (  )  [private, slot]

Load the settings of the dialog

Definition at line 179 of file accountsmanagerpage.cpp.

References accountSelected(), AccountsManager::getAccounts(), Account::getFriendlyName(), Account::getHandle(), Account::getPicturePath(), and AccountsManager::instance().

Referenced by AccountsManagerPage(), and deleteAccount().

{
  accountsList_->clear();
  const QList<Account*> accountsList = AccountsManager::instance()->getAccounts();
  foreach( Account *account, accountsList )
  {
    QString text( account->getFriendlyName() + "\n" + account->getHandle() );
    QListWidgetItem *item = new QListWidgetItem( QIcon( account->getPicturePath() ), text, accountsList_ );
    item->setData( Qt::UserRole, account->getHandle() );
  }

  // Update the viewport and the buttons
  accountSelected();
}


Generated by  Doxygen 1.6.0   Back to index