diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2018-03-09 15:24:54 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-03-19 12:01:14 -0700 |
commit | 94e0ec8dc95222d12bc82c18cd39dfefddc71e73 (patch) | |
tree | 461f9766bbf969de6ee7d45c59e5c3178d6c6e22 | |
parent | 07fb1db3ad5652b7df74f790d1c547a4d9bc3803 (diff) | |
download | subsurface-94e0ec8dc95222d12bc82c18cd39dfefddc71e73.tar.gz |
Mobile: change location combobox id
Change the id of the location combobox to math the naming scheme
of the other comboboxes.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index d91dfbef8..6ad50a682 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -11,8 +11,8 @@ Item { property int dive_id property int number property alias dateText: txtDate.text - property alias locationText: txtLocation.editText - property alias locationIndex: txtLocation.currentIndex + property alias locationText: locationBox.editText + property alias locationIndex: locationBox.currentIndex property alias gpsText: txtGps.text property alias airtempText: txtAirTemp.text property alias watertempText: txtWaterTemp.text @@ -36,7 +36,7 @@ Item { property alias divemasterModel: divemasterBox.model property alias buddyModel: buddyBox.model property alias cylinderModel: cylinderBox.model - property alias locationModel: txtLocation.model + property alias locationModel: locationBox.model property int rating property int visibility @@ -63,7 +63,7 @@ Item { function saveData() { diveDetailsPage.state = "view" // run the transition // apply the changes to the dive_table - manager.commitChanges(dive_id, detailsEdit.dateText, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText, + manager.commitChanges(dive_id, detailsEdit.dateText, locationBox.editText, detailsEdit.gpsText, detailsEdit.durationText, detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, suitBox.currentText != "" ? suitBox.currentText : suitBox.editText, buddyBox.editText, divemasterBox.currentText != "" ? divemasterBox.currentText : divemasterBox.editText, @@ -81,7 +81,7 @@ Item { var newIdx = diveModel.getIdxForId(dive_id) diveDetailsListView.currentIndex = newIdx diveDetailsListView.currentItem.modelData.date = detailsEdit.dateText - diveDetailsListView.currentItem.modelData.location = detailsEdit.locationText + diveDetailsListView.currentItem.modelData.location = locationBox.currentText diveDetailsListView.currentItem.modelData.duration = detailsEdit.durationText diveDetailsListView.currentItem.modelData.depth = detailsEdit.depthText diveDetailsListView.currentItem.modelData.airtemp = detailsEdit.airtempText @@ -133,7 +133,7 @@ Item { font.pointSize: subsurfaceTheme.smallPointSize } Controls.ComboBox { - id: txtLocation + id: locationBox editable: true flat: true model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? |