-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplay.h
29 lines (27 loc) · 778 Bytes
/
play.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef PLAY_H
#define PLAY_H
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QMouseEvent>
/*******************************************/
/*******************************************/
/************** PLAY BUTTON **************/
/*******************************************/
/*******************************************/
namespace insemi
{
class Play: public QGraphicsView, public QGraphicsPixmapItem
{Q_OBJECT
public:
Play(QGraphicsItem* parent=0);
~Play();
// public methods (events)
void mousePressEvent(QGraphicsSceneMouseEvent *);
void hoverEnterEvent(QGraphicsSceneHoverEvent *);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *);
void clicked();
};
}
#endif // PLAY_H