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
410 B
C++
27 lines
410 B
C++
#ifndef CCHECKBOX_H
|
|
#define CCHECKBOX_H
|
|
|
|
|
|
#include <QCheckBox>
|
|
#include <QMouseEvent>
|
|
|
|
|
|
class cCheckBox : public QCheckBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
cCheckBox(const QString &text, QWidget *parent = nullptr);
|
|
cCheckBox(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
void enterEvent(QEvent *ev);
|
|
void leaveEvent(QEvent *ev);
|
|
|
|
signals:
|
|
void windowEntered();
|
|
void windowLeft();
|
|
};
|
|
|
|
#endif // CCHECKBOX_H
|