4423
|
1 |
#ifndef DRAWMAPSCENE_H
|
|
2 |
#define DRAWMAPSCENE_H
|
|
3 |
|
|
4 |
#include <QGraphicsScene>
|
|
5 |
|
|
6 |
class DrawMapScene : public QGraphicsScene
|
|
7 |
{
|
|
8 |
Q_OBJECT
|
|
9 |
public:
|
|
10 |
explicit DrawMapScene(QObject *parent = 0);
|
|
11 |
|
|
12 |
signals:
|
|
13 |
|
|
14 |
public slots:
|
|
15 |
|
|
16 |
private:
|
4424
|
17 |
qreal m_halfWidth;
|
|
18 |
QPen m_pen;
|
|
19 |
QBrush m_brush;
|
|
20 |
|
4423
|
21 |
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
|
|
22 |
virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
|
|
23 |
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);
|
4424
|
24 |
|
|
25 |
void drawFigure(const QPointF & point);
|
4423
|
26 |
};
|
|
27 |
|
|
28 |
#endif // DRAWMAPSCENE_H
|