mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
80274b0968
commit
a6c8d0028e
3 changed files with 12 additions and 3 deletions
|
@ -16,13 +16,16 @@ Kirigami.Page {
|
|||
property alias airtemp: detailsEdit.airtempText
|
||||
property alias watertemp: detailsEdit.watertempText
|
||||
property alias buddyIndex: detailsEdit.buddyIndex
|
||||
property alias buddyModel: detailsEdit.buddyModel
|
||||
property alias divemasterIndex: detailsEdit.divemasterIndex
|
||||
property alias divemasterModel: detailsEdit.divemasterModel
|
||||
property alias depth: detailsEdit.depthText
|
||||
property alias duration: detailsEdit.durationText
|
||||
property alias location: detailsEdit.locationText
|
||||
property alias gps: detailsEdit.gpsText
|
||||
property alias notes: detailsEdit.notesText
|
||||
property alias suitIndex: detailsEdit.suitIndex
|
||||
property alias suitModel: detailsEdit.suitModel
|
||||
property alias weight: detailsEdit.weightText
|
||||
property alias startpressure: detailsEdit.startpressureText
|
||||
property alias endpressure: detailsEdit.endpressureText
|
||||
|
|
|
@ -26,6 +26,9 @@ Item {
|
|||
property alias endpressureText: txtEndPressure.text
|
||||
property alias gasmixText: txtGasMix.text
|
||||
property alias gpsCheckbox: checkboxGPS.checked
|
||||
property alias suitModel: suitBox.model
|
||||
property alias divemasterModel: divemasterBox.model
|
||||
property alias buddyModel: buddyBox.model
|
||||
|
||||
function saveData() {
|
||||
// apply the changes to the dive_table
|
||||
|
|
|
@ -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 = ""
|
||||
|
|
Loading…
Reference in a new issue