Do not call base class event functions in WorldspaceWidget

This avoids some event function being triggered twice. I do not fully understand why
calling the base class function causes this problem, which is more than a bit
disconcerting, but let's roll with it for now.
openmw-37
Marc Zinnschlag 9 years ago
parent 6c65081643
commit f3ee3f5be1

@ -555,8 +555,6 @@ void CSVRender::WorldspaceWidget::mouseMoveEvent (QMouseEvent *event)
editMode.drag (diffX, diffY, factor); editMode.drag (diffX, diffY, factor);
} }
RenderWidget::mouseMoveEvent(event);
} }
void CSVRender::WorldspaceWidget::mousePressEvent (QMouseEvent *event) void CSVRender::WorldspaceWidget::mousePressEvent (QMouseEvent *event)
@ -598,8 +596,6 @@ void CSVRender::WorldspaceWidget::mouseReleaseEvent (QMouseEvent *event)
} }
mDragMode.clear(); mDragMode.clear();
RenderWidget::mouseReleaseEvent(event);
} }
void CSVRender::WorldspaceWidget::mouseDoubleClickEvent (QMouseEvent *event) void CSVRender::WorldspaceWidget::mouseDoubleClickEvent (QMouseEvent *event)
@ -608,7 +604,6 @@ void CSVRender::WorldspaceWidget::mouseDoubleClickEvent (QMouseEvent *event)
{ {
//mMouse->mouseDoubleClickEvent(event); //mMouse->mouseDoubleClickEvent(event);
} }
//SceneWidget::mouseDoubleClickEvent(event);
} }
void CSVRender::WorldspaceWidget::wheelEvent (QWheelEvent *event) void CSVRender::WorldspaceWidget::wheelEvent (QWheelEvent *event)
@ -624,8 +619,6 @@ void CSVRender::WorldspaceWidget::wheelEvent (QWheelEvent *event)
editMode.dragWheel (event->delta(), factor); editMode.dragWheel (event->delta(), factor);
} }
RenderWidget::wheelEvent(event);
} }
void CSVRender::WorldspaceWidget::keyPressEvent (QKeyEvent *event) void CSVRender::WorldspaceWidget::keyPressEvent (QKeyEvent *event)

Loading…
Cancel
Save