aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2016-05-20 18:48:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-21 07:01:53 -0700
commita6c8d0028e946b4713f5fe8c083cf728f086b3b8 (patch)
tree9045097692331e204ab861dda4180dc149de9132 /mobile-widgets/qml/main.qml
parent80274b09689dff727ffe60f9b31faab4622dbc0b (diff)
downloadsubsurface-a6c8d0028e946b4713f5fe8c083cf728f086b3b8.tar.gz
Make autocomplete work on add dive
This sets the list models for autocompleting suit, buddy and divemaster. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index e02522404..b4c6f3610 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -71,14 +71,17 @@ Kirigami.ApplicationWindow {
detailsWindow.date = manager.getDate(detailsWindow.dive_id)
detailsWindow.airtemp = ""
detailsWindow.watertemp = ""
- detailsWindow.buddy = ""
+ detailsWindow.buddyModel = manager.buddyInit
+ detailsWindow.buddyIndex = -1
detailsWindow.depth = ""
- detailsWindow.divemaster = ""
+ detailsWindow.divemasterModel = manager.divemasterInit
+ detailsWindow.divemasterIndex = -1
detailsWindow.notes = ""
detailsWindow.location = ""
detailsWindow.gps = ""
detailsWindow.duration = ""
- detailsWindow.suit = ""
+ detailsWindow.suitModel = manager.suitInit
+ detailsWindow.suitIndex = -1
detailsWindow.weight = ""
detailsWindow.gasmix = ""
detailsWindow.startpressure = ""