tools/drawMapTest/drawmapscene.h
author unc0rr
Sat, 27 Nov 2010 23:55:39 +0300
changeset 4424 3225ea34e415
parent 4423 4391526e436e
child 4426 969e411c72aa
permissions -rw-r--r--
Some basic functionality

#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