Currently, margins, header, and footer logic is duplicated with slight differences across AbstractKCM, SimpleKCM, ScrollViewKCM, and GridViewKCM.
This causes the different QML-based KCMs to have slightly different margins in system settings and amounts to unnecessary code fragility.
This commit improves the situation by doing the following:
- ScrollViewKCM and GridViewKCM now inherit from AbstractKCM.
- AbstractKCM now uses the margin logic from GridViewKCM.
- Hardcoded size hacks for margins are removed because they didn't succeed in bringing about consistency with widget KCMs, and removing them in fact makes things better.
- SimpleKCM is switched to using the same margin calculation as AbstractKCM because it cannot inherit from AbstractKCM.
Visual changes are extremely minimal (a pixel more or less here or there) and result in all of these KCM components having consistent margins.