tools/drawMapTest/drawmapscene.cpp
author unc0rr
Sat, 27 Nov 2010 22:40:29 +0300
changeset 4423 4391526e436e
child 4424 3225ea34e415
permissions -rw-r--r--
Initial commit of the Draw Map Scene

#include <QDebug>
#include <QGraphicsSceneMouseEvent>

#include "drawmapscene.h"

DrawMapScene::DrawMapScene(QObject *parent) :
    QGraphicsScene(parent)
{
    setSceneRect(0, 0, 4096, 2048);
}

void DrawMapScene::mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent)
{

    qDebug() << "move" << mouseEvent->scenePos();
}

void DrawMapScene::mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent)
{
    qDebug() << "press" << mouseEvent->scenePos();
}

void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent)
{
    qDebug() << "release" << mouseEvent->scenePos();
}