1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/testmouselocker11/qqtmouselocker_p.h
tianduanrui 5d2481792c add a testcase.
test qqtmouselocker, support windows now.
2019-08-24 09:01:56 +08:00

38 lines
898 B
C++

#ifndef QQTMOUSELOCKER_P_H
#define QQTMOUSELOCKER_P_H
#include <QtCore/qglobal.h>
#include <QMouseEvent>
#ifdef __DESKTOP_WIN__
#include "qqtmouselocker_win.h"
#elif defined (__DESKTOP_DARWIN__)
#include "qqtmouselocker_mac.h"
#elif defined (__DESKTOP_LINUX__)
#include "qqtmouselocker_x11.h"
#else
#include "qqtmouselocker_other.h"
#endif
class QQtMouseLocker;
class QQtMouseLockerPrivate
{
public:
QQtMouseLockerPrivate ( QQtMouseLocker* q );
~QQtMouseLockerPrivate();
public:
virtual void focusInEvent ( QFocusEvent* event, QWidget* target = 0 );
virtual void focusOutEvent ( QFocusEvent* event, QWidget* target = 0 );
virtual void mouseMoveEvent ( QMouseEvent* event, QWidget* target = 0 );
private:
QQtMouseLocker* q_ptr;
Q_DECLARE_PUBLIC ( QQtMouseLocker )
QQtMouseLockerImpl* i_ptr;
};
#endif //QQTMOUSELOCKER_P_H