diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-19 14:05:09 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | 968278fe9125729b6dae163d1362d48adc53b554 (patch) | |
tree | 11ed9db5cea0842604933520186c286105f75b00 /qt-models/mobilelistmodel.cpp | |
parent | 56db02a6850baa8866edc8149fdad05f82d02df9 (diff) | |
download | subsurface-968278fe9125729b6dae163d1362d48adc53b554.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-models/mobilelistmodel.cpp')
-rw-r--r-- | qt-models/mobilelistmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/mobilelistmodel.cpp b/qt-models/mobilelistmodel.cpp index 744cda195..75753b12a 100644 --- a/qt-models/mobilelistmodel.cpp +++ b/qt-models/mobilelistmodel.cpp @@ -46,6 +46,7 @@ QHash<int, QByteArray> MobileListModelBase::roleNames() const roles[EndPressureRole] = "endPressure"; roles[FirstGasRole] = "firstGas"; roles[SelectedRole] = "selected"; + roles[DiveInTripRole] = "diveInTrip"; return roles; } |