2017-11-28 04:46:27 +00:00
|
|
|
#include "graphicsview.h"
|
2018-03-09 04:34:04 +00:00
|
|
|
#include "editor.h"
|
2017-11-28 04:46:27 +00:00
|
|
|
|
|
|
|
void GraphicsView::mousePressEvent(QMouseEvent *event) {
|
|
|
|
QGraphicsView::mousePressEvent(event);
|
|
|
|
if (editor) {
|
|
|
|
editor->objectsView_onMousePress(event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphicsView::mouseMoveEvent(QMouseEvent *event) {
|
|
|
|
QGraphicsView::mouseMoveEvent(event);
|
|
|
|
if (editor) {
|
|
|
|
editor->objectsView_onMouseMove(event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphicsView::mouseReleaseEvent(QMouseEvent *event) {
|
|
|
|
QGraphicsView::mouseReleaseEvent(event);
|
|
|
|
if (editor) {
|
|
|
|
editor->objectsView_onMouseRelease(event);
|
|
|
|
}
|
|
|
|
}
|