From 158a2ec1591598973dbde0cedd80a4494f34045a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 20 Oct 2019 07:37:51 -0400 Subject: Mobile: remove remaining accesses to DiveObjectHelper from QML Add a couple more roles and remove the dive role that allows accesss to the DiveObjectHelper in the first place. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetailsEdit.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml') diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 266f275a4..7e0e7f766 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -363,7 +363,7 @@ Item { id: cylinderBox0 flat: true model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? - diveDetailsListView.currentItem.modelData.dive.cylinderList : null + diveDetailsListView.currentItem.modelData.cylinderList : null inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true } @@ -420,7 +420,7 @@ Item { id: cylinderBox1 flat: true model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? - diveDetailsListView.currentItem.modelData.dive.cylinderList : null + diveDetailsListView.currentItem.modelData.cylinderList : null inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true } @@ -484,7 +484,7 @@ Item { currentIndex: find(usedCyl[2]) flat: true model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? - diveDetailsListView.currentItem.modelData.dive.cylinderList : null + diveDetailsListView.currentItem.modelData.cylinderList : null inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true } @@ -547,7 +547,7 @@ Item { currentIndex: find(usedCyl[3]) flat: true model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? - diveDetailsListView.currentItem.modelData.dive.cylinderList : null + diveDetailsListView.currentItem.modelData.cylinderList : null inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true } @@ -611,7 +611,7 @@ Item { currentIndex: find(usedCyl[4]) flat: true model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? - diveDetailsListView.currentItem.modelData.dive.cylinderList : null + diveDetailsListView.currentItem.modelData.cylinderList : null inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true } -- cgit v1.2.3-70-g09d2