filter panel

This commit is contained in:
2019-03-20 13:52:36 +01:00
parent ead5308a97
commit 354c6154e7
9 changed files with 156 additions and 7 deletions
+10
View File
@@ -237,6 +237,16 @@ cPerson* cPersonList::find(cPerson* lpPerson)
return(nullptr);
}
cPerson* cPersonList::find(const QString& szName)
{
for(cPersonList::iterator i = begin(); i != end(); i++)
{
if(szName == (*i)->name())
return(*i);
}
return(nullptr);
}
bool cPersonList::remove(cPerson* lpPerson)
{
if(!find(lpPerson))