vvim / routetool

Using Google Maps API to add locations and calculate the shortest route by Traveling Salesman Algorithm
1 stars 0 forks source link

rewrite Bellijst #18

Open vvim opened 8 years ago

vvim commented 8 years ago

instead of querying every ophaalpunt separately to check whether they have an 'aanmelding' or not. Better to query for all aanmeldingen, remember the 'ophaalpuntid' in a QList (or QSet) and check if teh ophaalpuntid is in the QList or not:

if(QList::contains(ophaalpuntid))
{
    ophaalpunt has an aanmelding, change color;
}
else
{
    ophaalpunt has NO aanmelding, stay normal color;
}
vvim commented 8 years ago

see void Form::on_showOphaalpunten_clicked()