Qt: Set proper spinbox ranges