diff --git a/plotwidget.cpp b/plotwidget.cpp new file mode 100644 index 0000000..3189020 --- /dev/null +++ b/plotwidget.cpp @@ -0,0 +1,10 @@ +#include "plotwidget.h" + +PlotWidget::PlotWidget(QWidget *parent) : QWidget(parent) +{ + +} +void PlotWidget::leaveEvent(QEvent *event) +{ + emit leftPlot(); +} diff --git a/plotwidget.h b/plotwidget.h new file mode 100644 index 0000000..4f11659 --- /dev/null +++ b/plotwidget.h @@ -0,0 +1,19 @@ +#ifndef PLOTWIDGET_H +#define PLOTWIDGET_H + +#include + +class PlotWidget : public QWidget +{ + Q_OBJECT +public: + explicit PlotWidget(QWidget *parent = nullptr); + +signals: + void leftPlot(); +protected: + void leaveEvent(QEvent *event); +public slots: +}; + +#endif // PLOTWIDGET_H