No Description

graphicsview.cpp 579B

12345678910111213141516171819202122
  1. #include "graphicsview.h"
  2. void GraphicsView::mousePressEvent(QMouseEvent *event) {
  3. QGraphicsView::mousePressEvent(event);
  4. if (editor) {
  5. editor->objectsView_onMousePress(event);
  6. }
  7. }
  8. void GraphicsView::mouseMoveEvent(QMouseEvent *event) {
  9. QGraphicsView::mouseMoveEvent(event);
  10. if (editor) {
  11. editor->objectsView_onMouseMove(event);
  12. }
  13. }
  14. void GraphicsView::mouseReleaseEvent(QMouseEvent *event) {
  15. QGraphicsView::mouseReleaseEvent(event);
  16. if (editor) {
  17. editor->objectsView_onMouseRelease(event);
  18. }
  19. }