Use proper types when calling qMax.

Typecast 0.0 to qreal explicitly.
Merge pull request #12 from andrewshadura/patch-4

Use proper types when calling qMax. See PR #19 as well.