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
@@ -230,6 +230,16 @@ cLocation* cLocationList::find(cLocation* lpLocation)
return(nullptr);
}
cLocation* cLocationList::find(const QString& szName)
{
for(cLocationList::iterator i = begin(); i != end(); i++)
{
if(szName == (*i)->name())
return(*i);
}
return(nullptr);
}
bool cLocationList::remove(cLocation* lpLocation)
{
if(!find(lpLocation))