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
tianduanrui 61f1dae97b add qqtbodymover.
press on window body and move window.
support: windows \ unix \ linux \ e-linux
2019-08-25 11:14:05 +08:00

29 lines
658 B
C++

#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