Use proper types when calling qMax.

Typecast 0.0 to qreal explicitly.