28 lines
499 B
C++
28 lines
499 B
C++
#ifndef ADDNETBTN_H
|
|
#define ADDNETBTN_H
|
|
|
|
#include <QObject>
|
|
#include <QWidget>
|
|
#include <QPushButton>
|
|
#include <QTranslator>
|
|
#include <QApplication>
|
|
|
|
class AddNetBtn : public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AddNetBtn(QWidget *parent = nullptr);
|
|
~AddNetBtn();
|
|
|
|
protected:
|
|
virtual void leaveEvent(QEvent * event);
|
|
virtual void enterEvent(QEvent * event);
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
Q_SIGNALS:
|
|
void enterWidget();
|
|
void leaveWidget();
|
|
};
|
|
|
|
#endif // ADDNETBTN_H
|