2017-09-24 19:54:13 +02:00
|
|
|
#ifndef HEARTRATEGRAPHITEM_H
|
|
|
|
#define HEARTRATEGRAPHITEM_H
|
|
|
|
|
|
|
|
#include "graphitem.h"
|
|
|
|
|
|
|
|
class HeartRateGraphItem : public GraphItem
|
|
|
|
{
|
2017-09-24 20:13:13 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2017-09-24 19:54:13 +02:00
|
|
|
public:
|
2017-10-04 23:15:39 +02:00
|
|
|
HeartRateGraphItem(const Graph &graph, GraphType type,
|
|
|
|
QGraphicsItem *parent = 0);
|
2017-09-24 19:54:13 +02:00
|
|
|
|
2018-10-26 09:15:23 +02:00
|
|
|
qreal max() const {return _max;}
|
2017-09-24 19:54:13 +02:00
|
|
|
qreal avg() const {return _avg;}
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString toolTip() const;
|
|
|
|
|
2018-10-26 09:15:23 +02:00
|
|
|
qreal _avg, _max;
|
2017-09-24 19:54:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HEARTRATEGRAPHITEM_H
|