You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
451 B
C++

#ifndef CLABEL_H
#define CLABEL_H
#include <QLabel>
#include <QEvent>
class cLabel : public QLabel
{
Q_OBJECT
public:
cLabel(const QString &text, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
cLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
protected:
void enterEvent(QEvent *ev);
void leaveEvent(QEvent *ev);
signals:
void windowEntered();
void windowLeft();
};
#endif // CLABEL_H