Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 529 Bytes
#ifndef STARTBUTTON_H
#define STARTBUTTON_H
#include <QGraphicsRectItem>
#include <QGraphicsSceneMouseEvent>
class StartButton : public QObject, public QGraphicsRectItem
{
Q_OBJECT
public:
StartButton(QString name, QGraphicsItem *parent = NULL);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
signals:
void clicked();
private:
QGraphicsTextItem* text;
};
#endif // STARTBUTTON_H