tools/drawMapTest/drawmapscene.cpp
changeset 4423 4391526e436e
child 4424 3225ea34e415
equal deleted inserted replaced
4422:5e8cfef25ccb 4423:4391526e436e
       
     1 #include <QDebug>
       
     2 #include <QGraphicsSceneMouseEvent>
       
     3 
       
     4 #include "drawmapscene.h"
       
     5 
       
     6 DrawMapScene::DrawMapScene(QObject *parent) :
       
     7     QGraphicsScene(parent)
       
     8 {
       
     9     setSceneRect(0, 0, 4096, 2048);
       
    10 }
       
    11 
       
    12 void DrawMapScene::mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent)
       
    13 {
       
    14 
       
    15     qDebug() << "move" << mouseEvent->scenePos();
       
    16 }
       
    17 
       
    18 void DrawMapScene::mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent)
       
    19 {
       
    20     qDebug() << "press" << mouseEvent->scenePos();
       
    21 }
       
    22 
       
    23 void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent)
       
    24 {
       
    25     qDebug() << "release" << mouseEvent->scenePos();
       
    26 }