mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 11:39:16 +02:00
Debug stuff
This commit is contained in:
9
src/graph.cpp
Normal file
9
src/graph.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include "graph.h"
|
||||
|
||||
QDebug operator<<(QDebug dbg, const GraphPoint &graphpoint)
|
||||
{
|
||||
dbg.nospace() << "GraphPoint(" << graphpoint.s() << ", "
|
||||
<< graphpoint.t() << ", " << graphpoint.y() << ")";
|
||||
|
||||
return dbg.maybeSpace();
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
#define GRAPH_H
|
||||
|
||||
#include <QVector>
|
||||
#include <QDebug>
|
||||
#include <cmath>
|
||||
|
||||
enum GraphType {Distance, Time};
|
||||
@ -27,6 +28,10 @@ private:
|
||||
qreal _y;
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(GraphPoint, Q_PRIMITIVE_TYPE);
|
||||
QDebug operator<<(QDebug dbg, const GraphPoint &graphpoint);
|
||||
|
||||
|
||||
class Graph : public QVector<GraphPoint>
|
||||
{
|
||||
public:
|
||||
@ -44,6 +49,4 @@ private:
|
||||
bool _time;
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(GraphPoint, Q_PRIMITIVE_TYPE);
|
||||
|
||||
#endif // GRAPH_H
|
||||
|
Reference in New Issue
Block a user