23 lines
366 B
C++
23 lines
366 B
C++
#ifndef QT_HOVER_BUTTON_H
|
|
#define QT_HOVER_BUTTON_H
|
|
|
|
#include <QPushButton>
|
|
|
|
class QtHoverButton: public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QtHoverButton(QWidget* parent = nullptr);
|
|
|
|
signals:
|
|
void hoveredIn(QPushButton*);
|
|
void hoveredOut(QPushButton*);
|
|
|
|
protected:
|
|
void enterEvent(QEvent* event);
|
|
void leaveEvent(QEvent* event);
|
|
};
|
|
|
|
#endif // QT_HOVER_BUTTON_H
|