From 6a72f2f15c9f39b2a851b955b9b87abede8d0257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 9 Nov 2020 22:12:41 +0100 Subject: initial work --- labb4/qresetbutton.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 labb4/qresetbutton.h (limited to 'labb4/qresetbutton.h') diff --git a/labb4/qresetbutton.h b/labb4/qresetbutton.h new file mode 100644 index 0000000..4b15e6f --- /dev/null +++ b/labb4/qresetbutton.h @@ -0,0 +1,28 @@ +/** + * TDDD86 Robots + * This file contains the declaration of the QResetButton class. + * See qresetbutton.cpp for implementation of each member. + */ + +#ifndef QRESETBUTTON_H +#define QRESETBUTTON_H + +#include + +class QResetButton : public QLabel +{ + Q_OBJECT +public: + QResetButton( QWidget* parent = 0); + +signals: + void clicked(); + +public slots: + +protected: + void mousePressEvent(QMouseEvent* event); + +}; + +#endif // QRESETBUTTON_H -- cgit v1.2.1