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.
29 lines
471 B
C++
29 lines
471 B
C++
#include "ccheckbox.h"
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
cCheckBox::cCheckBox(const QString &text, QWidget *parent) :
|
|
QCheckBox(text, parent)
|
|
{
|
|
this->setMouseTracking(true);
|
|
this->setAttribute(Qt::WA_Hover);
|
|
}
|
|
|
|
cCheckBox::cCheckBox(QWidget *parent) :
|
|
QCheckBox(parent)
|
|
{
|
|
this->setMouseTracking(true);
|
|
this->setAttribute(Qt::WA_Hover);
|
|
}
|
|
|
|
void cCheckBox::enterEvent(QEvent* /*ev*/)
|
|
{
|
|
emit(windowEntered());
|
|
}
|
|
|
|
void cCheckBox::leaveEvent(QEvent* /*ev*/)
|
|
{
|
|
emit(windowLeft());
|
|
}
|