From 0e4e8edf78999fa6e9e1052c9022661949b9d00b Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 16 May 2016 19:59:05 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- core/subsurface-qt/DiveObjectHelper.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'core/subsurface-qt/DiveObjectHelper.cpp') 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; } -- cgit v1.2.3-70-g09d2