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>
This commit is contained in:
Tomaz Canabrava 2014-01-28 20:48:41 -02:00 committed by Dirk Hohndel
parent 775b4f702a
commit ae56119a9a
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -92,6 +92,7 @@ class DiveCalculatedCeiling : public AbstractProfilePolygonItem{
public:
virtual void modelDataChanged();
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
virtual void preferencesChanged();
};
class DiveReportedCeiling : public AbstractProfilePolygonItem{