axis_rect.h 425 B

123456789101112131415161718192021
  1. #ifndef AXISRECT_H
  2. #define AXISRECT_H
  3. #include "qcustomplot.h"
  4. class AxisRect : public QCPAxisRect
  5. {
  6. Q_OBJECT
  7. public:
  8. AxisRect(QCustomPlot *plot);
  9. void clearPlottables();
  10. void setAxisColor(QColor color);
  11. protected:
  12. virtual void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
  13. virtual void mousePressEvent(QMouseEvent *event, const QVariant &details) Q_DECL_OVERRIDE;
  14. };
  15. #endif // AXISRECT_H