1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/testbodymover/qqtbodymover_p.h

29 lines
658 B
C
Raw Normal View History

#ifndef QQTBODYMOVER_P_H
#define QQTBODYMOVER_P_H
#include <QtCore/qglobal.h>
#include <QMouseEvent>
class QQtBodyMover;
class QQtBodyMoverPrivate
{
public:
QQtBodyMoverPrivate ( QQtBodyMover* q );
~QQtBodyMoverPrivate();
public:
virtual void mousePressEvent ( QMouseEvent* event, QWidget* target = 0 );
virtual void mouseReleaseEvent ( QMouseEvent* event, QWidget* target = 0 );
virtual void mouseMoveEvent ( QMouseEvent* event, QWidget* target = 0 );
private:
QQtBodyMover* q_ptr;
Q_DECLARE_PUBLIC ( QQtBodyMover )
bool bMousePressed;
QPoint pressedPoint;
};
#endif //QQTBODYMOVER_P_H