[Cursor KCM] Restore live preview on hover
When hovering a cursor in the delegate, it changes the mouse cursor to it.
While at it, modernize, i.e. nullptr, range-for, KWindowSystem::isPlatformX11(), coding style
Differential Revision: https://phabricator.kde.org/D24157