No Description

graphicsview.cpp 447B

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