equal
deleted
inserted
replaced
350 return (availableManagers); |
350 return (availableManagers); |
351 } |
351 } |
352 |
352 |
353 int ContactsEngine::rowCount(const QModelIndex &parent) const |
353 int ContactsEngine::rowCount(const QModelIndex &parent) const |
354 { |
354 { |
355 QList<QContact> allContacts; |
355 return this->m_manager->contacts().count(); |
356 int rc = 0; |
|
357 if (this->m_manager) |
|
358 { |
|
359 allContacts = this->m_manager->contacts(); |
|
360 // return stringList.count(); |
|
361 if (!allContacts.isEmpty()) |
|
362 rc = allContacts.count(); |
|
363 } |
|
364 return rc; |
|
365 } |
356 } |
366 |
357 |
367 void ContactsEngine::enumerateMgrs() |
358 void ContactsEngine::enumerateMgrs() |
368 { |
359 { |
369 QStringList mgrs = QContactManager::availableManagers(); |
360 QStringList mgrs = QContactManager::availableManagers(); |