Skip to content
Snippets Groups Projects
Commit 9bf14c7b authored by Emmanuel Lepage's avatar Emmanuel Lepage
Browse files

[ #10724 ] Add bookmarks to the dataengine

parent c86edc0c
No related branches found
No related tags found
No related merge requests found
...@@ -235,7 +235,10 @@ void SFLPhoneEngine::updateAccounts() ...@@ -235,7 +235,10 @@ void SFLPhoneEngine::updateAccounts()
{ {
const QVector<Account*>& list = m_pModel->getAccountList()->getAccounts(); const QVector<Account*>& list = m_pModel->getAccountList()->getAccounts();
foreach(Account* a,list) { foreach(Account* a,list) {
setData("accounts", a->getAccountDetail(ACCOUNT_ALIAS), a->getAccountId()); QHash<QString,QVariant> acc;
acc["id"] = a->getAccountId();
acc["alias"] = a->getAccountDetail(ACCOUNT_ALIAS)
setData("accounts", QString::number(rand()) , a->getAccountId());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment