mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Code cleanup: HeartRate item was doing insane things
This simplifies so much of the code that we were using to control the visibility of the HeartRate. now things are much saner. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
65eefe7b59
commit
607d450cd6
3 changed files with 9 additions and 30 deletions
|
|
@ -102,13 +102,9 @@ public:
|
|||
virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
|
||||
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
virtual void settingsChanged();
|
||||
void setVisibilitySettingsKey(const QString &setVisibilitySettingsKey);
|
||||
bool isVisible();
|
||||
|
||||
private:
|
||||
void createTextItem(int seconds, int hr);
|
||||
QString visibilityKey;
|
||||
bool visible;
|
||||
};
|
||||
|
||||
class DiveGasPressureItem : public AbstractProfilePolygonItem {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue