QModelIndex CoreAccountModel::accountIndex(AccountId accId) const
{
for (int i = 0; i < _accounts.count(); i++) {
if (_accounts.at(i).accountId() == accId)
return index(i, 0);
}
QModelIndex CoreAccountModel::accountIndex(AccountId accId) const
{
for (int i = 0; i < _accounts.count(); i++) {
if (_accounts.at(i).accountId() == accId)
return index(i, 0);
}