Advertisement
oblivioncth

mouse.h

Apr 19th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef MOUSE_H
  2. #define MOUSE_H
  3.  
  4. #include <QGraphicsItem>
  5.  
  6. class Mouse : public QGraphicsItem
  7. {
  8. public:
  9.     Mouse();
  10.  
  11.     QRectF boundingRect() const Q_DECL_OVERRIDE;
  12.     QPainterPath shape() const Q_DECL_OVERRIDE;
  13.     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
  14.                QWidget *widget) Q_DECL_OVERRIDE;
  15.  
  16. protected:
  17.     void advance(int step) Q_DECL_OVERRIDE;
  18.  
  19. private:
  20.     qreal angle;
  21.     qreal speed;
  22.     qreal mouseEyeDirection;
  23.     QColor color;
  24. };
  25.  
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement