1234567891011121314151617181920212223 |
- #ifndef SMOOTHCURVEGRAPH_H
- #define SMOOTHCURVEGRAPH_H
- #include "qcustomplot.h"
- class SmoothCurveGraph : public QCPGraph
- {
- Q_OBJECT
- public:
- SmoothCurveGraph(QCPAxis *keyAxis, QCPAxis *valueAxis);
- void setSmooth(bool smooth);
- protected:
- bool m_smooth;
- // QCPGraph interface
- protected:
- virtual void drawLinePlot(QCPPainter *painter, const QVector<QPointF> &lines) const override;
- };
- #endif // SMOOTHCURVEGRAPH_H
|