Support QSpinBox when saving/restoring settings