QML UI: add comboboxes to DiveDetailsEdit

This adds autocompleting text input fields for suit, buddy and
divemaster.

[Dirk Hohndel: some whitespace cleanup]

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Joakim Bygdell 2016-05-16 19:59:05 +02:00 committed by Dirk Hohndel
parent fcc370b2fe
commit 0e4e8edf78
3 changed files with 38 additions and 29 deletions

View file

@ -371,9 +371,9 @@ QStringList DiveObjectHelper::suitList() const
if (!temp.isEmpty())
suits << d->suit;
}
suits.removeDuplicates();
suits.sort();
return suits;
suits.removeDuplicates();
suits.sort();
return suits;
}
QStringList DiveObjectHelper::buddyList() const
@ -392,9 +392,9 @@ QStringList DiveObjectHelper::buddyList() const
buddies << tempList;
}
}
buddies.removeDuplicates();
buddies.sort();
return buddies;
buddies.removeDuplicates();
buddies.sort();
return buddies;
}
QStringList DiveObjectHelper::divemasterList() const
@ -407,7 +407,7 @@ QStringList DiveObjectHelper::divemasterList() const
if (!temp.isEmpty())
divemasters << d->divemaster;
}
divemasters.removeDuplicates();
divemasters.sort();
return divemasters;
divemasters.removeDuplicates();
divemasters.sort();
return divemasters;
}