mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove location completion model
This is a functional but hard to expand model for the dive sites. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b8ae4c50b4
commit
324b6182aa
2 changed files with 0 additions and 21 deletions
|
@ -42,19 +42,6 @@ CREATE_CSV_UPDATE_METHOD(BuddyCompletionModel, buddy);
|
|||
CREATE_CSV_UPDATE_METHOD(DiveMasterCompletionModel, divemaster);
|
||||
CREATE_UPDATE_METHOD(SuitCompletionModel, suit);
|
||||
|
||||
void LocationCompletionModel::updateModel()
|
||||
{
|
||||
QStringList list;
|
||||
struct dive_site *ds;
|
||||
int i = 0;
|
||||
for_each_dive_site(i, ds) {
|
||||
if (!list.contains(ds->name))
|
||||
list.append(ds->name);
|
||||
}
|
||||
std::sort(list.begin(), list.end());
|
||||
setStringList(list);
|
||||
}
|
||||
|
||||
void TagCompletionModel::updateModel()
|
||||
{
|
||||
if (g_tag_list == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue