blob: 95ca2e2a2159d69751ec9e69b7f5f4a54d3c5684 (
plain)
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
|
#ifndef RECTBUTTON_H
#define RECTBUTTON_H
#include <QGraphicsObject>
class RectButton : public QGraphicsObject
{
Q_OBJECT
public:
RectButton(QString buttonText);
~RectButton();
virtual QRectF boundingRect() const;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
protected:
QString m_ButtonText;
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event);
signals:
void clicked();
};
#endif // RECTBUTTON_H
|