mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
926224122e
This version already plots the dive-graph, with the gradient and all that jazz. One thing that will be easily spotted is that the size of the line is very thick - easily changed, I'm just using the default. As soon as everything is plotted correctly I'll fix the lines. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
22 lines
409 B
C++
22 lines
409 B
C++
#ifndef PROFILEGRAPHICS_H
|
|
#define PROFILEGRAPHICS_H
|
|
|
|
#include <QGraphicsView>
|
|
|
|
class ProfileGraphicsView : public QGraphicsView {
|
|
Q_OBJECT
|
|
public:
|
|
ProfileGraphicsView(QWidget* parent = 0);
|
|
void plot(struct dive *d);
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
private:
|
|
void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi);
|
|
|
|
QPen defaultPen;
|
|
QBrush defaultBrush;
|
|
};
|
|
|
|
#endif
|