mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-13 01:22:10 +01:00
24 lines
400 B
C++
24 lines
400 B
C++
#ifndef HEARTRATEGRAPHITEM_H
|
|
#define HEARTRATEGRAPHITEM_H
|
|
|
|
#include "graphitem.h"
|
|
|
|
class HeartRateGraphItem : public GraphItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
HeartRateGraphItem(const Graph &graph, GraphType type,
|
|
QGraphicsItem *parent = 0);
|
|
|
|
qreal max() const {return -bounds().top();}
|
|
qreal avg() const {return _avg;}
|
|
|
|
private:
|
|
QString toolTip() const;
|
|
|
|
qreal _avg;
|
|
};
|
|
|
|
#endif // HEARTRATEGRAPHITEM_H
|