From 46796bed89cd2a9d2051871e35381080013044a4 Mon Sep 17 00:00:00 2001 From: Lurkki14 <44469719+Lurkki14@users.noreply.github.com> Date: Sun, 13 Jan 2019 15:28:13 +0200 Subject: [PATCH] Add files via upload --- plotwidget.cpp | 10 ++++++++++ plotwidget.h | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 plotwidget.cpp create mode 100644 plotwidget.h 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