mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:43:24 +00:00
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:
parent
775b4f702a
commit
ae56119a9a
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Add table
Reference in a new issue