mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
61f1dae97b
press on window body and move window. support: windows \ unix \ linux \ e-linux
29 lines
658 B
C++
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
|