qmovewindowmanager.h 496 B

123456789101112131415161718192021222324252627
  1. #ifndef QMOVEWINDOWMANAGER_H
  2. #define QMOVEWINDOWMANAGER_H
  3. #include <QtCore/qglobal.h>
  4. #include <QObject>
  5. #include <QWidget>
  6. #include "qcoreevent.h"
  7. class QMoveWindowManager : public QObject
  8. {
  9. Q_OBJECT
  10. QPoint m_ptPress;
  11. bool m_bLeftButtonPress;
  12. QPoint m_ptMove;
  13. QWidget * m_parent;
  14. QRect m_hit;
  15. public:
  16. QMoveWindowManager(QWidget *parent,QRect hit=QRect());
  17. ~QMoveWindowManager();
  18. virtual bool eventFilter( QObject * obj, QEvent * evt);
  19. private:
  20. };
  21. #endif // QMOVEWINDOWMANAGER_H