layerwidget: Use persistent editors.
This simplifies certain event handling, and also works much better with the eventcapture testing framework.