From 968278fe9125729b6dae163d1362d48adc53b554 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 19 Feb 2020 14:05:09 -0800 Subject: core: add 'diveInTrip' role to underlying data model This will allow us to offer differentiated options in the context menu. Signed-off-by: Dirk Hohndel --- qt-models/divetripmodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-models/divetripmodel.cpp') diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index a9fd3490b..7c6655ba8 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -229,6 +229,7 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role) case MobileListModel::EndPressureRole: return getEndPressure(d); case MobileListModel::FirstGasRole: return getFirstGas(d); case MobileListModel::SelectedRole: return d->selected; + case MobileListModel::DiveInTripRole: return d->divetrip != NULL; } #endif switch (role) { -- cgit v1.2.3-70-g09d2