mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
fcc370b2fe
commit
0e4e8edf78
3 changed files with 38 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue