Fix for qBound on ARM


Add explicit qreal casts required for ARM

See comments here: http://www.thelins.se/johan/blog/2011/12/qbound-on-arm/

Other parts of the code are already OK for ARM.