Although my compiler isn't complaining when I remove the cmath and algorithm #includes, I am suspicious...added them back
Changed constructor, spinner can now automatically centre itself on its parent widget and modality can be set by the user