You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Component/FITKPlotWindow/FITKXYPlotWindow.cpp

31 lines
612 B
C++

#include "FITKXYPlotWindow.h"
#include "ui_FITKXYPlotWindow.h"
#include <qwt_plot.h>
namespace Plot
{
FITKXYPlotWindow::FITKXYPlotWindow(QWidget* parent /*= nullptr*/)
:Core::FITKAbstractGraph2DWidget(parent)
{
_ui = new Ui::FITKXYPlotWindow;
_ui->setupUi(this);
_plotWidget = new QwtPlot;
_ui->gridLayout->addWidget(_plotWidget);
}
FITKXYPlotWindow::~FITKXYPlotWindow()
{
if (_plotWidget) delete _plotWidget;
if (_ui) delete _ui;
}
QwtPlot* FITKXYPlotWindow::getPlotWidget()
{
return _plotWidget;
}
}