1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/speedgraphitem.h

25 lines
455 B
C
Raw Normal View History

#ifndef SPEEDGRAPHITEM_H
#define SPEEDGRAPHITEM_H
#include "graphitem.h"
class SpeedGraphItem : public GraphItem
{
public:
SpeedGraphItem(const Graph &graph, qreal movingTime,
QGraphicsItem *parent = 0);
qreal max() const {return -bounds().top();}
qreal avg() const {return _avg;}
qreal mavg() const {return _mavg;}
void setUnits(Units units);
private:
QString toolTip(Units units) const;
qreal _avg, _mavg;
};
#endif // SPEEDGRAPHITEM_H