equal
deleted
inserted
replaced
|
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 } |