diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-28 20:48:41 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-29 09:33:01 -0800 |
commit | ae56119a9a617fd4e0f940cf31de6a2cc6f7cda0 (patch) | |
tree | af971c02116dcc05be48ef818f1175b181bafc9e /qt-ui/profile/diveprofileitem.cpp | |
parent | 775b4f702acce9aa1acad1406164a7c55c1876fb (diff) | |
download | subsurface-ae56119a9a617fd4e0f940cf31de6a2cc6f7cda0.tar.gz |
Make the calculated ceiling be preferences aware
This patch only adds preference-awareness for the ceiling.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.cpp')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 23c41a708..d72a83834 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -438,6 +438,13 @@ void DiveReportedCeiling::modelDataChanged() setBrush(pat); } +void DiveCalculatedCeiling::preferencesChanged() +{ + QSettings s; + s.beginGroup("TecDetails"); + setVisible(s.value("calcceiling").toBool()); +} + void DiveReportedCeiling::preferencesChanged() { QSettings s; |