The value is a string, so I don't think this works - the original code performed the QString-to-int conversion.