KMessageWidget: Fix handling of palette changes
The Qt6 port changed it so the widget listens to ApplicationPaletteChange, but this only works for top-level widgets. Instead, we want to listen to palette change. Also prevents an infinite recursion when doing so.
This fixes the text label and the icon being colored incorrectly on palette changes.