From c52769a90fcb26fadfc56b1584a03ddfa76b24dd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 28 Jan 2016 16:01:29 -0800 Subject: QML UI: use unique names for the different ListViews Having both the dive list (the vertical list) and the sequence of dive details (the horizontally swipe-able list) named the same caused me endless confusion. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsEdit.qml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'qt-mobile/qml/DiveDetailsEdit.qml') diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml index 14366fec4..ed32e5d50 100644 --- a/qt-mobile/qml/DiveDetailsEdit.qml +++ b/qt-mobile/qml/DiveDetailsEdit.qml @@ -159,16 +159,16 @@ Item { detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText, detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText) // apply the changes to the dive detail view - diveListView.currentItem.modelData.date = detailsEdit.dateText - diveListView.currentItem.modelData.location = detailsEdit.locationText - diveListView.currentItem.modelData.duration = detailsEdit.durationText - diveListView.currentItem.modelData.depth = detailsEdit.depthText - diveListView.currentItem.modelData.airtemp = detailsEdit.airtempText - diveListView.currentItem.modelData.watertemp = detailsEdit.watertempText - diveListView.currentItem.modelData.suit = detailsEdit.suitText - diveListView.currentItem.modelData.buddy = detailsEdit.buddyText - diveListView.currentItem.modelData.divemaster = detailsEdit.divemasterText - diveListView.currentItem.modelData.notes = detailsEdit.notesText + diveDetailsListView.currentItem.modelData.date = detailsEdit.dateText + diveDetailsListView.currentItem.modelData.location = detailsEdit.locationText + diveDetailsListView.currentItem.modelData.duration = detailsEdit.durationText + diveDetailsListView.currentItem.modelData.depth = detailsEdit.depthText + diveDetailsListView.currentItem.modelData.airtemp = detailsEdit.airtempText + diveDetailsListView.currentItem.modelData.watertemp = detailsEdit.watertempText + diveDetailsListView.currentItem.modelData.suit = detailsEdit.suitText + diveDetailsListView.currentItem.modelData.buddy = detailsEdit.buddyText + diveDetailsListView.currentItem.modelData.divemaster = detailsEdit.divemasterText + diveDetailsListView.currentItem.modelData.notes = detailsEdit.notesText diveDetailsPage.state = "view" } } -- cgit v1.2.3-70-g09d2