editor/view: Fix crash when the display widget is not visible

The render widget gets reparented when it's not visible (see
deactivate). We need to ensure that the widget is a parent of this
before calling QWidget::mapFrom.

Signed-off-by: Guillaume Clement <gclement@baobob.org>