Changed float to qreal.