TransformEditor: use QPointer for editorWidget in order guarantee that the widget pointer doesn't turn into garbage and cause crashes.