Also remove the shadow in widgetDestroyed()
It can happen that the widget is destroyed without being hidden before and us handling the QObject::destroyed signal before this event. Because the slot will unregister the widget, we will not do anything in the event filter and the shadow will linger around. So we also have to to hide the shadow in the slot.