tools/drawMapTest/drawmapscene.h
author unc0rr
Sat, 27 Nov 2010 23:57:31 +0300
changeset 4425 2314bb0c433d
parent 4424 3225ea34e415
child 4426 969e411c72aa
permissions -rw-r--r--
Small testing app for DrawMap scene

#ifndef DRAWMAPSCENE_H
#define DRAWMAPSCENE_H

#include <QGraphicsScene>

class DrawMapScene : public QGraphicsScene
{
Q_OBJECT
public:
    explicit DrawMapScene(QObject *parent = 0);

signals:

public slots:

private:
    qreal m_halfWidth;
    QPen m_pen;
    QBrush m_brush;

    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);

    void drawFigure(const QPointF & point);
};

#endif // DRAWMAPSCENE_H