2019-09-24 13:01:55 +08:00
|
|
|
|
#include "qqtmouselocker_p.h"
|
2019-08-24 09:01:56 +08:00
|
|
|
|
#include "qqtmouselocker.h"
|
|
|
|
|
|
|
|
|
|
QQtMouseLockerPrivate::QQtMouseLockerPrivate ( QQtMouseLocker* q )
|
|
|
|
|
{
|
|
|
|
|
q_ptr = q;
|
2019-09-24 13:01:55 +08:00
|
|
|
|
i_ptr = new QQtMouseLockerImpl ( );
|
2019-08-24 09:01:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QQtMouseLockerPrivate::~QQtMouseLockerPrivate()
|
|
|
|
|
{
|
|
|
|
|
delete i_ptr;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-24 13:01:55 +08:00
|
|
|
|
void QQtMouseLockerPrivate::lockWindow ( QWidget* target )
|
|
|
|
|
{
|
|
|
|
|
i_ptr->lockWindow ( target );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QQtMouseLockerPrivate::unlockWindow ( QWidget* target )
|
|
|
|
|
{
|
|
|
|
|
i_ptr->unlockWindow ( target );
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-24 09:01:56 +08:00
|
|
|
|
void QQtMouseLockerPrivate::focusInEvent ( QFocusEvent* event, QWidget* target )
|
|
|
|
|
{
|
|
|
|
|
i_ptr->focusInEvent ( event, target );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QQtMouseLockerPrivate::focusOutEvent ( QFocusEvent* event, QWidget* target )
|
|
|
|
|
{
|
|
|
|
|
i_ptr->focusOutEvent ( event, target );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QQtMouseLockerPrivate::mouseMoveEvent ( QMouseEvent* event, QWidget* target )
|
|
|
|
|
{
|
|
|
|
|
i_ptr->mouseMoveEvent ( event, target );
|
|
|
|
|
}
|