diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2016-05-16 19:59:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-16 11:05:20 -0700 |
commit | 0e4e8edf78999fa6e9e1052c9022661949b9d00b (patch) | |
tree | 28702946ee44062e434748e46ada902c6f918de4 /core/subsurface-qt/DiveObjectHelper.cpp | |
parent | fcc370b2fe532c42f52834ec7200c07f8e853313 (diff) | |
download | subsurface-0e4e8edf78999fa6e9e1052c9022661949b9d00b.tar.gz |
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>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index 9f694c513..e71b0764e 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -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; } |