mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
38 lines
664 B
C++
38 lines
664 B
C++
#pragma once
|
|
#include <QObject>
|
|
#include <qwt_plot.h>
|
|
#include <qwt_plot_curve.h>
|
|
#include <qwt_text.h>
|
|
|
|
#ifdef INTERNAL
|
|
#define EXPORT Q_DECL_EXPORT
|
|
#else
|
|
#define EXPORT Q_DECL_IMPORT
|
|
#endif
|
|
|
|
/**
|
|
* @brief Class wrapping a QwtPlot for plotting data
|
|
*
|
|
*/
|
|
class EXPORT Plot_wrapper : public QwtPlot
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
/**
|
|
* @brief Construct a new Plot_wrapper object
|
|
*
|
|
* @param parent The parent QWidget
|
|
*/
|
|
Plot_wrapper(QWidget *parent = nullptr);
|
|
|
|
/**
|
|
* @brief Get the curve associated with the plot
|
|
*
|
|
* @return QwtPlotCurve*
|
|
*/
|
|
QwtPlotCurve *curve() const;
|
|
|
|
private:
|
|
QwtPlotCurve *m_curve;
|
|
};
|