aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2016-05-16 19:59:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-16 11:05:20 -0700
commit0e4e8edf78999fa6e9e1052c9022661949b9d00b (patch)
tree28702946ee44062e434748e46ada902c6f918de4 /core/subsurface-qt/DiveObjectHelper.cpp
parentfcc370b2fe532c42f52834ec7200c07f8e853313 (diff)
downloadsubsurface-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.cpp18
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;
}